*****Conscription and Military Service: Do They Result in Future Violent and Non-Violent Incarcerations and Recidivism?  Wang, Flores-Lagunes 2020*****

**This dofile creates the pooled SISFCF inmate data file
cd "C:\Users\xinto\Dropbox\Vietnam Veteran Paper\Crime Paper\2020 JHR Data\1. Main Dataset\Main SISFCF Data Set"

set more off
clear all
set memory 350m
set matsize 800

*********1979 State Survey Data to be merged**********
use sisfcf_1979, clear

keep study id male weight total_male_inmate birthMonth birthDay birthYear age white /// 
married divorced neverMarried armForce serveBranch /// 
army monthEnterMilitary yearEnterMilitary monthDischargedMilitary yearDischargedMilitary /// 
memberReserve stationedVietnam eligibleVA admissionMonth admissionYear /// 
LScurrentOffense1 LScurrentOffense2 LScurrentOffense3 LScurrentOffense4 ///
currentOffense1 currentOffense2 currentOffense3 currentOffense4 priorIncarceration ///
everProbation timesProbationJuv timesProbationAdu ageProbation servDrunk /// 
timesDrunkAsJuv timesDrunkAsAdu servOther timesOtherJuv timesOtherAdu /// 
firstServeOffense1 firstServeOffense2 firstServeOffense3 firstServeOffense4 firstAdmitMonth ///
firstAdmitYear firstServeAdult secondServeOffense1 secondServeOffense2 secondServeOffense3 ///
secondServeOffense4 secondAdmitMonth secondAdmitYear secondServeAdult thirdServeOffense1 ///
thirdServeOffense2 thirdServeOffense3 thirdServeOffense4 thirdAdmitMonth thirdAdmitYear /// 
thirdServeAdult fourthServeOffense1 fourthServeOffense2 fourthServeOffense3 fourthServeOffense4 /// 
fourthAdmitMonth fourthAdmitYear fourthServeAdult fifthServeOffense1 fifthServeOffense2 /// 
fifthServeOffense3 fifthServeOffense4 fifthAdmitMonth fifthAdmitYear fifthServeAdult ///
sixthServeOffense1 sixthServeOffense2 sixthServeOffense3 sixthServeOffense4 sixthAdmitMonth /// 
sixthAdmitYear sixthServeAdult seventhServeOffense1 seventhServeOffense2 seventhServeOffense3 /// 
seventhServeOffense4 seventhAdmitMonth seventhAdmitYear seventhServeAdult eighthServeOffense1 ///
eighthServeOffense2 eighthServeOffense3 eighthServeOffense4 eighthAdmitMonth eighthAdmitYear ///
eighthServeAdult ninthServeOffense1 ninthServeOffense2 ninthServeOffense3 ninthServeOffense4 ///
ninthAdmitMonth ninthAdmitYear ninthServeAdult tenthServeOffense1 tenthServeOffense2 ///
tenthServeOffense3 tenthServeOffense4 tenthAdmitMonth tenthAdmitYear tenthServeAdult /// 
eleventhServeOffense1 eleventhServeOffense2 eleventhServeOffense3 eleventhServeOffense4 eleventhAdmitMonth ///
eleventhAdmitYear eleventhServeAdult twelfthServeOffense1 twelfthServeOffense2 twelfthServeOffense3 ///
twelfthServeOffense4 twelfthAdmitMonth twelfthAdmitYear twelfthServeAdult thirteethServeOffense1 ///
thirteethServeOffense2 thirteethServeOffense3 thirteethServeOffense4 thirteethAdmitMonth thirteethAdmitYear ///
thirteethServeAdult hasGedEqui topGradeAttended topGradeCompleted completeHighSchool ///
formalTraining jobAtOffense fullTimeJob lookForJob reasonNotLooking /// 
yearLastWorked freeAYear monthIncome annualIncome receiveWage /// 
receiveSsi receiveFAndF receiveIllegalIncome receiveAnythingElse supportOthersBeforeArrest /// 
numberSiblings oldestChild higestGradeMother higestGradeFather familyServed /// 
motherServed fatherServed growUpMotherOnly growUpFatherOnly growUpBothParents /// 
growUpGrandParents growUpOtherRelatives growUpFriends growUpFosterInst growUpElse /// 
haveChildren everUseDrug ageFirstUseHeroin ageFirstUseMeth ageFirstUseCocaine ///
ageFirstUseMarijuana ageFirstUseAmphetamine ageFirstUseBarbituat ageFirstUseLsd ageFirstUsePcp /// 
ageFirstUseOtherDrugs ageFirstUseAnyDrugs useDrugBeforeCurrentOffense useDrugBeforeFirstOffense useDrugProgram /// 
underDrugInfluence 

save vc_state_1979, replace 

*********1986 State Survey Data to be merged************
use sisfcf_1986, clear

keep study id male weight total_male_inmate birthMonth birthDay birthYear age white ///
spainHisp married divorced neverMarried armForce /// 
vietEra serveBranch army monthEnterMilitary yearEnterMilitary /// 
monthDischargedMilitary yearDischargedMilitary admissionMonth admissionYear currentOffense1 /// 
LScurrentOffense1 LScurrentOffense2 LScurrentOffense3 LScurrentOffense4 LScurrentOffense5 LScurrentOffense6 ///
currentOffense2 currentOffense3 currentOffense4 currentOffense5  LScurrentOffense6 arrestMonth arrestYear /// 
priorIncarceration ageFirstArrest ageFirstIncarcerated everProbation timesProbationJuv /// 
ageProbationJuv firstProbOffenseJuv1 firstProbOffenseJuv2 firstProbOffenseJuv3 firstProbOffenseJuv4 /// 
firstProbOffenseJuv5 timesProbationAdu ageProbationAdu firstProbOffenseAdu1 firstProbOffenseAdu2 /// 
firstProbOffenseAdu3 firstProbOffenseAdu4 firstProbOffenseAdu5 servDrunk timesDrunkAsJuv ///
timesDrunkAsAdu servOther timesOtherJuv timesOtherAdu timesConfined /// 
firstServeOffense1 firstServeOffense2 firstServeOffense3 firstServeOffense4 firstServeOffense5 /// 
firstAdmitMonth firstAdmitYear firstServeAdult secondServeOffense1 secondServeOffense2 /// 
secondServeOffense3 secondServeOffense4 secondServeOffense5 secondAdmitMonth secondAdmitYear /// 
secondServeAdult thirdServeOffense1 thirdServeOffense2 thirdServeOffense3 thirdServeOffense4 ///
thirdServeOffense5 thirdAdmitMonth thirdAdmitYear thirdServeAdult fourthServeOffense1 /// 
fourthServeOffense2 fourthServeOffense3 fourthServeOffense4 fourthServeOffense5 fourthAdmitMonth /// 
fourthAdmitYear fourthServeAdult fifthServeOffense1 fifthServeOffense2 fifthServeOffense3 /// 
fifthServeOffense4 fifthServeOffense5 fifthAdmitMonth fifthAdmitYear fifthServeAdult /// 
sixthServeOffense1 sixthServeOffense2 sixthServeOffense3 sixthServeOffense4 sixthServeOffense5 /// 
sixthAdmitMonth sixthAdmitYear sixthServeAdult seventhServeOffense1 seventhServeOffense2 /// 
seventhServeOffense3 seventhServeOffense4 seventhServeOffense5 seventhAdmitMonth seventhAdmitYear ///
seventhServeAdult eighthServeOffense1 eighthServeOffense2 eighthServeOffense3 eighthServeOffense4 ///
eighthServeOffense5 eighthAdmitMonth eighthAdmitYear eighthServeAdult ninthServeOffense1 /// 
ninthServeOffense2 ninthServeOffense3 ninthServeOffense4 ninthServeOffense5 ninthAdmitMonth /// 
ninthAdmitYear ninthServeAdult tenthServeOffense1 tenthServeOffense2 tenthServeOffense3 /// 
tenthServeOffense4 tenthServeOffense5 tenthAdmitMonth tenthAdmitYear tenthServeAdult /// 
hasGedEqui topGradeAttended topGradeCompleted completeHighSchool jobAtOffense /// 
fullTimeJob lookForJob reasonNotLooking yearLastWorked freeAYear ///
monthIncome annualIncome receiveWage receiveSsi receiveFAndF /// 
receiveIllegalIncome receiveEducGrant receiveAnythingElse supportOthersBeforeArrest numberSiblings ///
growUpMotherOnly growUpFatherOnly growUpBothParents growUpGrandParents growUpOtherRelatives /// 
growUpFriends growUpFosterInst growUpElse familyServed motherServed ///
fatherServed abusedPhyBefore abusedSexBefore abusedSexnPhyBefore haveChildren ///
everUseDrug ageFirstUseAnyDrugs useDrugReg ageFirstUseDrugsRegular useDrugBeforeCurrentOffense ///
useDrugProgram underDrugInfluence 

save vc_state_1986, replace 

*********1991 State Survey Data to be merged************
use sisfcf_1991, clear

keep study id male weight total_male_inmate birthMonth birthDay birthYear age white /// 
spainHisp married divorced neverMarried armForce /// 
vietEra stationedVietnam sawCombat serveBranch army /// 
monthEnterMilitary yearEnterMilitary monthDischargedMilitary yearDischargedMilitary admissionMonth ///
admissionYear currentOffense1 currentOffense2 currentOffense3 currentOffense4 /// 
currentOffense5 LScurrentOffense1 LScurrentOffense2 LScurrentOffense3 LScurrentOffense4 LScurrentOffense5 LScurrentOffense6 ///
arrestMonth arrestYear priorIncarceration totalArrest /// 
ageFirstArrest firstArrestOffense1 firstArrestOffense2 firstArrestOffense3 firstArrestOffense4 /// 
firstArrestOffense5 everProbation timesOnProbationJuv ageProbationJuv firstProbOffenseJuv1 /// 
firstProbOffenseJuv2 firstProbOffenseJuv3 firstProbOffenseJuv4 firstProbOffenseJuv5 timesProbationAdu ///
ageProbationAdu firstProbOffenseAdu1 firstProbOffenseAdu2 firstProbOffenseAdu3 firstProbOffenseAdu4 ///
firstProbOffenseAdu5 convDrunk servDrunk timesDrunkAsJuv timesDrunkAsAdu ///
servOther timesOtherJuv timesOtherAdu firstServeOffense1 firstServeOffense2 /// 
firstServeOffense3 firstServeOffense4 firstServeOffense5 firstAdmitMonth firstAdmitYear /// 
firstAdmitAge firstServeAdult secondServeOffense1 secondServeOffense2 secondServeOffense3 /// 
secondServeOffense4 secondServeOffense5 secondAdmitMonth secondAdmitYear secondAdmitAge /// 
secondServeAdult thirdServeOffense1 thirdServeOffense2 thirdServeOffense3 thirdServeOffense4 /// 
thirdServeOffense5 thirdAdmitMonth thirdAdmitYear thirdAdmitAge thirdServeAdult ///
fourthServeOffense1 fourthServeOffense2 fourthServeOffense3 fourthServeOffense4 fourthServeOffense5 ///
fourthAdmitMonth fourthAdmitYear fourthAdmitAge fourthServeAdult fifthServeOffense1 ///
fifthServeOffense2 fifthServeOffense3 fifthServeOffense4 fifthServeOffense5 fifthAdmitMonth /// 
fifthAdmitYear fifthAdmitAge fifthServeAdult sixthServeOffense1 sixthServeOffense2 ///
sixthServeOffense3 sixthServeOffense4 sixthServeOffense5 sixthAdmitMonth sixthAdmitYear ///
sixthAdmitAge sixthServeAdult seventhServeOffense1 seventhServeOffense2 seventhServeOffense3 ///
seventhServeOffense4 seventhServeOffense5 seventhAdmitMonth seventhAdmitYear seventhAdmitAge /// 
seventhServeAdult eighthServeOffense1 eighthServeOffense2 eighthServeOffense3 eighthServeOffense4 ///
eighthServeOffense5 eighthAdmitMonth eighthAdmitYear eighthAdmitAge eighthServeAdult ///
ninthServeOffense1 ninthServeOffense2 ninthServeOffense3 ninthServeOffense4 ninthServeOffense5 ///
ninthAdmitMonth ninthAdmitYear ninthAdmitAge ninthServeAdult tenthServeOffense1 ///
tenthServeOffense2 tenthServeOffense3 tenthServeOffense4 tenthServeOffense5 tenthAdmitMonth ///
tenthAdmitYear tenthAdmitAge tenthServeAdult hasGedEqui topGradeAttended ///
topGradeCompleted completeHighSchool jobAtOffense fullTimeJob lookForJob ///
reasonNotLooking yearLastWorked neverWorked freeAYear monthIncome ///
annualIncome receiveWage receiveSsi receiveFAndF receiveIllegalIncome /// 
receiveEducGrant receiveAnythingElse illegalIncome supportOthersBeforeArrest numberSiblings ///
growUpMotherOnly growUpFatherOnly growUpBothParents growUpGrandParents growUpOtherRelatives ///
growUpFriends growUpFosterInst growUpElse growUpParentsDrugAlcohol familyServed /// 
motherServed fatherServed abusedPhyBefore abusedSexBefore abusedSexnPhyBefore ///
haveChildren friendsDoIllegal everUseDrug ageFirstUseAnyDrugs useDrugReg ///
useDrugBeforeCurrentOffense underDrugInfluence 

save vc_state_1991, replace 


*********1991 Federal Survey Data to be merged************
use sisfcf_1991_federal, clear 

keep study id male weight total_male_inmate birthMonth birthDay birthYear age white ///
spainHisp married divorced neverMarried armForce vietEra stationedVietnam sawCombat serveBranch army /// 
monthEnterMilitary yearEnterMilitary monthDischargedMilitary yearDischargedMilitary convictedStatus ///
admissionMonth admissionYear currentOffense1 currentOffense2 currentOffense3 /// 
currentOffense4 currentOffense5 arrestMonth arrestYear priorIncarceration /// 
LScurrentOffense1 LScurrentOffense2 LScurrentOffense3 LScurrentOffense4 LScurrentOffense5 LScurrentOffense6 ///
totalArrest ageFirstArrest firstArrestOffense1 firstArrestOffense2 firstArrestOffense3 ///
firstArrestOffense4 firstArrestOffense5 everProbation timesOnProbationJuv ageProbationJuv ///
firstProbOffenseJuv1 firstProbOffenseJuv2 firstProbOffenseJuv3 firstProbOffenseJuv4 firstProbOffenseJuv5 /// 
timesProbationAdu ageProbationAdu firstProbOffenseAdu1 firstProbOffenseAdu2 firstProbOffenseAdu3 ///
firstProbOffenseAdu4 firstProbOffenseAdu5 convDrunk servDrunk timesDrunkAsJuv /// 
timesDrunkAsAdu servOther timesOtherJuv timesOtherAdu firstServeOffense1 ///
firstProbOffenseAdu2 firstProbOffenseAdu3 firstProbOffenseAdu4 firstProbOffenseAdu5 convDrunk /// 
servDrunk timesDrunkAsJuv timesDrunkAsAdu servOther timesOtherJuv ///
timesOtherAdu firstServeOffense1 firstServeOffense2 firstServeOffense3 firstServeOffense4 ///
firstServeOffense5 firstAdmitMonth firstAdmitYear firstAdmitAge firstServeAdult ///
secondServeOffense1 secondServeOffense2 secondServeOffense3 secondServeOffense4 secondServeOffense5 ///
secondAdmitMonth secondAdmitYear secondAdmitAge secondServeAdult thirdServeOffense1 ///
thirdServeOffense2 thirdServeOffense3 thirdServeOffense4 thirdServeOffense5 thirdAdmitMonth ///
thirdAdmitYear thirdAdmitAge thirdServeAdult fourthServeOffense1 fourthServeOffense2 ///
fourthServeOffense3 fourthServeOffense4 fourthServeOffense5 fourthAdmitMonth fourthAdmitYear ///
fourthAdmitAge fourthServeAdult fifthServeOffense1 fifthServeOffense2 fifthServeOffense3 ///
fifthServeOffense4 fifthServeOffense5 fifthAdmitMonth fifthAdmitYear fifthAdmitAge ///
fifthServeAdult sixthServeOffense1 sixthServeOffense2 sixthServeOffense3 sixthServeOffense4 ///
sixthServeOffense5 sixthAdmitMonth sixthAdmitYear sixthAdmitAge sixthServeAdult ///
seventhServeOffense1 seventhServeOffense2 seventhServeOffense3 seventhServeOffense4 seventhServeOffense5 ///
seventhAdmitMonth seventhAdmitYear seventhAdmitAge seventhServeAdult eighthServeOffense1 ///
eighthServeOffense2 eighthServeOffense3 eighthServeOffense4 eighthServeOffense5 eighthAdmitMonth ///
eighthAdmitYear eighthAdmitAge eighthServeAdult ninthServeOffense1 ninthServeOffense2 ///
ninthServeOffense3 ninthServeOffense4 ninthServeOffense5 ninthAdmitMonth ninthAdmitYear /// 
ninthAdmitAge ninthServeAdult tenthServeOffense1 tenthServeOffense2 tenthServeOffense3 ///
tenthServeOffense4 tenthServeOffense5 tenthAdmitMonth tenthAdmitYear tenthAdmitAge ///
tenthServeAdult hasGedEqui topGradeAttended topGradeCompleted completeHighSchool ///
jobAtOffense fullTimeJob lookForJob reasonNotLooking yearLastWorked ///
neverWorked freeAYear monthIncome annualIncome receiveWage ///
receiveSsi receiveFAndF receiveIllegalIncome receiveEducGrant receiveAnythingElse /// 
illegalIncome supportOthersBeforeArrest numberSiblings growUpMotherOnly growUpFatherOnly ///
growUpBothParents growUpGrandParents growUpOtherRelatives growUpFriends growUpFosterInst /// 
growUpElse growUpParentsDrugAlcohol familyServed motherServed fatherServed /// 
abusedPhyBefore abusedSexBefore abusedSexnPhyBefore haveChildren everUseDrug /// 
ageFirstUseAnyDrugs useDrugReg useDrugBeforeCurrentOffense underDrugInfluence ///

save vc_federal_1991, replace 


use vc_state_1979, clear 
append using vc_state_1986 
append using vc_state_1991
append using vc_federal_1991
drop if male==0

***Coding the eligibility to draft***
*Lotteries Number
gen lott=999
*01/1944-1950
replace lott=305 if birthMonth==1 & birthDay==1 & birthYear>=44 & birthYear<=50
replace lott=159 if birthMonth==1 & birthDay==2 & birthYear>=44 & birthYear<=50
replace lott=251 if birthMonth==1 & birthDay==3 & birthYear>=44 & birthYear<=50
replace lott=215 if birthMonth==1 & birthDay==4 & birthYear>=44 & birthYear<=50
replace lott=101 if birthMonth==1 & birthDay==5 & birthYear>=44 & birthYear<=50
replace lott=224 if birthMonth==1 & birthDay==6 & birthYear>=44 & birthYear<=50
replace lott=306 if birthMonth==1 & birthDay==7 & birthYear>=44 & birthYear<=50
replace lott=199 if birthMonth==1 & birthDay==8 & birthYear>=44 & birthYear<=50
replace lott=194 if birthMonth==1 & birthDay==9 & birthYear>=44 & birthYear<=50
replace lott=325 if birthMonth==1 & birthDay==10 & birthYear>=44 & birthYear<=50
replace lott=329 if birthMonth==1 & birthDay==11 & birthYear>=44 & birthYear<=50
replace lott=221 if birthMonth==1 & birthDay==12 & birthYear>=44 & birthYear<=50
replace lott=318 if birthMonth==1 & birthDay==13 & birthYear>=44 & birthYear<=50
replace lott=238 if birthMonth==1 & birthDay==14 & birthYear>=44 & birthYear<=50
replace lott=17 if birthMonth==1 & birthDay==15 & birthYear>=44 & birthYear<=50 
replace lott=121 if birthMonth==1 & birthDay==16 & birthYear>=44 & birthYear<=50
replace lott=235 if birthMonth==1 & birthDay==17 & birthYear>=44 & birthYear<=50
replace lott=140 if birthMonth==1 & birthDay==18 & birthYear>=44 & birthYear<=50
replace lott=58 if birthMonth==1 & birthDay==19 & birthYear>=44 & birthYear<=50
replace lott=280 if birthMonth==1 & birthDay==20 & birthYear>=44 & birthYear<=50
replace lott=186 if birthMonth==1 & birthDay==21 & birthYear>=44 & birthYear<=50
replace lott=337 if birthMonth==1 & birthDay==22 & birthYear>=44 & birthYear<=50
replace lott=118 if birthMonth==1 & birthDay==23 & birthYear>=44 & birthYear<=50 
replace lott=59 if birthMonth==1 & birthDay==24 & birthYear>=44 & birthYear<=50
replace lott=52 if birthMonth==1 & birthDay==25 & birthYear>=44 & birthYear<=50
replace lott=92 if birthMonth==1 & birthDay==26 & birthYear>=44 & birthYear<=50 
replace lott=355 if birthMonth==1 & birthDay==27 & birthYear>=44 & birthYear<=50 
replace lott=77 if birthMonth==1 & birthDay==28 & birthYear>=44 & birthYear<=50 
replace lott=349 if birthMonth==1 & birthDay==29 & birthYear>=44 & birthYear<=50 
replace lott=164 if birthMonth==1 & birthDay==30 & birthYear>=44 & birthYear<=50
replace lott=211 if birthMonth==1 & birthDay==31 & birthYear>=44 & birthYear<=50

*02/1944-1950
replace lott=86  if birthMonth==2 & birthDay==1 & birthYear>=44 & birthYear<=50 
replace lott=144 if birthMonth==2 & birthDay==2 & birthYear>=44 & birthYear<=50 
replace lott=297 if birthMonth==2 & birthDay==3 & birthYear>=44 & birthYear<=50 
replace lott=210 if birthMonth==2 & birthDay==4 & birthYear>=44 & birthYear<=50 
replace lott=214 if birthMonth==2 & birthDay==5 & birthYear>=44 & birthYear<=50 
replace lott=347 if birthMonth==2 & birthDay==6 & birthYear>=44 & birthYear<=50 
replace lott=91  if birthMonth==2 & birthDay==7 & birthYear>=44 & birthYear<=50 
replace lott=181 if birthMonth==2 & birthDay==8 & birthYear>=44 & birthYear<=50
replace lott=338 if birthMonth==2 & birthDay==9 & birthYear>=44 & birthYear<=50 
replace lott=216 if birthMonth==2 & birthDay==10 & birthYear>=44 & birthYear<=50 
replace lott=150 if birthMonth==2 & birthDay==11 & birthYear>=44 & birthYear<=50 
replace lott=68  if birthMonth==2 & birthDay==12 & birthYear>=44 & birthYear<=50 
replace lott=152 if birthMonth==2 & birthDay==13 & birthYear>=44 & birthYear<=50 
replace lott=4   if birthMonth==2 & birthDay==14 & birthYear>=44 & birthYear<=50
replace lott=89  if birthMonth==2 & birthDay==15 & birthYear>=44 & birthYear<=50
replace lott=212 if birthMonth==2 & birthDay==16 & birthYear>=44 & birthYear<=50
replace lott=189 if birthMonth==2 & birthDay==17 & birthYear>=44 & birthYear<=50
replace lott=292 if birthMonth==2 & birthDay==18 & birthYear>=44 & birthYear<=50 
replace lott=25  if birthMonth==2 & birthDay==19 & birthYear>=44 & birthYear<=50
replace lott=302 if birthMonth==2 & birthDay==20 & birthYear>=44 & birthYear<=50 
replace lott=363 if birthMonth==2 & birthDay==21 & birthYear>=44 & birthYear<=50 
replace lott=290 if birthMonth==2 & birthDay==22 & birthYear>=44 & birthYear<=50 
replace lott=57  if birthMonth==2 & birthDay==23 & birthYear>=44 & birthYear<=50 
replace lott=236 if birthMonth==2 & birthDay==24 & birthYear>=44 & birthYear<=50
replace lott=179 if birthMonth==2 & birthDay==25 & birthYear>=44 & birthYear<=50 
replace lott=365 if birthMonth==2 & birthDay==26 & birthYear>=44 & birthYear<=50
replace lott=205 if birthMonth==2 & birthDay==27 & birthYear>=44 & birthYear<=50
replace lott=299 if birthMonth==2 & birthDay==28 & birthYear>=44 & birthYear<=50
replace lott=285 if birthMonth==2 & birthDay==29 & birthYear>=44 & birthYear<=50

*03/1944-1950
replace lott=108 if birthMonth==3 & birthDay==1 & birthYear>=44 & birthYear<=50
replace lott=29  if birthMonth==3 & birthDay==2 & birthYear>=44 & birthYear<=50 
replace lott=267 if birthMonth==3 & birthDay==3 & birthYear>=44 & birthYear<=50
replace lott=275 if birthMonth==3 & birthDay==4 & birthYear>=44 & birthYear<=50
replace lott=293 if birthMonth==3 & birthDay==5 & birthYear>=44 & birthYear<=50
replace lott=139 if birthMonth==3 & birthDay==6 & birthYear>=44 & birthYear<=50
replace lott=122 if birthMonth==3 & birthDay==7 & birthYear>=44 & birthYear<=50 
replace lott=213 if birthMonth==3 & birthDay==8 & birthYear>=44 & birthYear<=50 
replace lott=317 if birthMonth==3 & birthDay==9 & birthYear>=44 & birthYear<=50 
replace lott=323 if birthMonth==3 & birthDay==10 & birthYear>=44 & birthYear<=50
replace lott=136 if birthMonth==3 & birthDay==11 & birthYear>=44 & birthYear<=50
replace lott=300 if birthMonth==3 & birthDay==12 & birthYear>=44 & birthYear<=50 
replace lott=259 if birthMonth==3 & birthDay==13 & birthYear>=44 & birthYear<=50
replace lott=354 if birthMonth==3 & birthDay==14 & birthYear>=44 & birthYear<=50
replace lott=169 if birthMonth==3 & birthDay==15 & birthYear>=44 & birthYear<=50
replace lott=166 if birthMonth==3 & birthDay==16 & birthYear>=44 & birthYear<=50
replace lott=33  if birthMonth==3 & birthDay==17 & birthYear>=44 & birthYear<=50
replace lott=332 if birthMonth==3 & birthDay==18 & birthYear>=44 & birthYear<=50
replace lott=200 if  birthMonth==3 & birthDay==19 & birthYear>=44 & birthYear<=50
replace lott=239 if birthMonth==3 & birthDay==20 & birthYear>=44 & birthYear<=50
replace lott=334 if birthMonth==3 & birthDay==21 & birthYear>=44 & birthYear<=50
replace lott=265 if birthMonth==3 & birthDay==22 & birthYear>=44 & birthYear<=50
replace lott=256 if birthMonth==3 & birthDay==23 & birthYear>=44 & birthYear<=50 
replace lott=258 if  birthMonth==3 & birthDay==24 & birthYear>=44 & birthYear<=50
replace lott=343 if  birthMonth==3 & birthDay==25 & birthYear>=44 & birthYear<=50
replace lott=170 if  birthMonth==3 & birthDay==26 & birthYear>=44 & birthYear<=50
replace lott=268 if birthMonth==3 & birthDay==27 & birthYear>=44 & birthYear<=50
replace lott=223 if  birthMonth==3 & birthDay==28 & birthYear>=44 & birthYear<=50
replace lott=362 if birthMonth==3 & birthDay==29 & birthYear>=44 & birthYear<=50
replace lott=217 if birthMonth==3 & birthDay==30 & birthYear>=44 & birthYear<=50 
replace lott=30  if birthMonth==3 & birthDay==31 & birthYear>=44 & birthYear<=50 

*04/1944-1950
replace lott=32 if birthMonth==4 & birthDay==1 & birthYear>=44 & birthYear<=50
replace lott=271  if birthMonth==4 & birthDay==2 & birthYear>=44 & birthYear<=50
replace lott=83 if birthMonth==4 & birthDay==3 & birthYear>=44 & birthYear<=50 
replace lott=81 if birthMonth==4 & birthDay==4 & birthYear>=44 & birthYear<=50
replace lott=269 if birthMonth==4 & birthDay==5 & birthYear>=44 & birthYear<=50
replace lott=253 if birthMonth==4 & birthDay==6 & birthYear>=44 & birthYear<=50
replace lott=147 if birthMonth==4 & birthDay==7 & birthYear>=44 & birthYear<=50
replace lott=312 if birthMonth==4 & birthDay==8 & birthYear>=44 & birthYear<=50 
replace lott=219 if birthMonth==4 & birthDay==9 & birthYear>=44 & birthYear<=50 
replace lott=218 if birthMonth==4 & birthDay==10 & birthYear>=44 & birthYear<=50 
replace lott=14 if birthMonth==4 & birthDay==11 & birthYear>=44 & birthYear<=50
replace lott=346 if birthMonth==4 & birthDay==12 & birthYear>=44 & birthYear<=50
replace lott=124 if birthMonth==4 & birthDay==13 & birthYear>=44 & birthYear<=50
replace lott=231 if birthMonth==4 & birthDay==14 & birthYear>=44 & birthYear<=50
replace lott=273 if birthMonth==4 & birthDay==15 & birthYear>=44 & birthYear<=50
replace lott=148 if birthMonth==4 & birthDay==16 & birthYear>=44 & birthYear<=50
replace lott=260  if birthMonth==4 & birthDay==17 & birthYear>=44 & birthYear<=50
replace lott=90 if birthMonth==4 & birthDay==18 & birthYear>=44 & birthYear<=50
replace lott=336 if  birthMonth==4 & birthDay==19 & birthYear>=44 & birthYear<=50
replace lott=345 if birthMonth==4 & birthDay==20 & birthYear>=44 & birthYear<=50
replace lott=62 if birthMonth==4 & birthDay==21 & birthYear>=44 & birthYear<=50
replace lott=316 if birthMonth==4 & birthDay==22 & birthYear>=44 & birthYear<=50
replace lott=252 if birthMonth==4 & birthDay==23 & birthYear>=44 & birthYear<=50
replace lott=2 if  birthMonth==4 & birthDay==24 & birthYear>=44 & birthYear<=50
replace lott=351 if  birthMonth==4 & birthDay==25 & birthYear>=44 & birthYear<=50 
replace lott=340 if  birthMonth==4 & birthDay==26 & birthYear>=44 & birthYear<=50
replace lott=74 if birthMonth==4 & birthDay==27 & birthYear>=44 & birthYear<=50
replace lott=262 if  birthMonth==4 & birthDay==28 & birthYear>=44 & birthYear<=50 
replace lott=191 if birthMonth==4 & birthDay==29 & birthYear>=44 & birthYear<=50 
replace lott=208 if birthMonth==4 & birthDay==30 & birthYear>=44 & birthYear<=50 
	
*05/1944-1950
replace lott=330 if birthMonth==5 & birthDay==1 & birthYear>=44 & birthYear<=50
replace lott=298 if birthMonth==5 & birthDay==2 & birthYear>=44 & birthYear<=50 
replace lott=40  if birthMonth==5 & birthDay==3 & birthYear>=44 & birthYear<=50
replace lott=276 if birthMonth==5 & birthDay==4 & birthYear>=44 & birthYear<=50 
replace lott=364 if birthMonth==5 & birthDay==5 & birthYear>=44 & birthYear<=50 
replace lott=155 if birthMonth==5 & birthDay==6 & birthYear>=44 & birthYear<=50 
replace lott=35  if birthMonth==5 & birthDay==7 & birthYear>=44 & birthYear<=50 
replace lott=321 if birthMonth==5 & birthDay==8 & birthYear>=44 & birthYear<=50 
replace lott=197 if birthMonth==5 & birthDay==9 & birthYear>=44 & birthYear<=50 
replace lott=65  if birthMonth==5 & birthDay==10 & birthYear>=44 & birthYear<=50
replace lott=37  if birthMonth==5 & birthDay==11 & birthYear>=44 & birthYear<=50
replace lott=133 if birthMonth==5 & birthDay==12 & birthYear>=44 & birthYear<=50 
replace lott=295 if birthMonth==5 & birthDay==13 & birthYear>=44 & birthYear<=50 
replace lott=178 if birthMonth==5 & birthDay==14 & birthYear>=44 & birthYear<=50 
replace lott=130 if birthMonth==5 & birthDay==15 & birthYear>=44 & birthYear<=50 
replace lott=55  if birthMonth==5 & birthDay==16 & birthYear>=44 & birthYear<=50 
replace lott=112 if birthMonth==5 & birthDay==17 & birthYear>=44 & birthYear<=50 
replace lott=278 if birthMonth==5 & birthDay==18 & birthYear>=44 & birthYear<=50
replace lott=75  if  birthMonth==5 & birthDay==19 & birthYear>=44 & birthYear<=50 
replace lott=183 if birthMonth==5 & birthDay==20 & birthYear>=44 & birthYear<=50 
replace lott=250 if birthMonth==5 & birthDay==21 & birthYear>=44 & birthYear<=50 
replace lott=326 if birthMonth==5 & birthDay==22 & birthYear>=44 & birthYear<=50 
replace lott=319 if birthMonth==5 & birthDay==23 & birthYear>=44 & birthYear<=50 
replace lott=31  if  birthMonth==5 & birthDay==24 & birthYear>=44 & birthYear<=50
replace lott=361 if  birthMonth==5 & birthDay==25 & birthYear>=44 & birthYear<=50 
replace lott=357 if  birthMonth==5 & birthDay==26 & birthYear>=44 & birthYear<=50 
replace lott=296 if birthMonth==5 & birthDay==27 & birthYear>=44 & birthYear<=50 
replace lott=308 if  birthMonth==5 & birthDay==28 & birthYear>=44 & birthYear<=50 
replace lott=226 if birthMonth==5 & birthDay==29 & birthYear>=44 & birthYear<=50 
replace lott=103 if birthMonth==5 & birthDay==30 & birthYear>=44 & birthYear<=50 
replace lott=313 if birthMonth==5 & birthDay==31 & birthYear>=44 & birthYear<=50 

*06/1944-1950
replace lott=249 if birthMonth==6 & birthDay==1 & birthYear>=44 & birthYear<=50
replace lott=228 if birthMonth==6 & birthDay==2 & birthYear>=44 & birthYear<=50 
replace lott=301 if birthMonth==6 & birthDay==3 & birthYear>=44 & birthYear<=50
replace lott=20  if birthMonth==6 & birthDay==4 & birthYear>=44 & birthYear<=50 
replace lott=28  if birthMonth==6 & birthDay==5 & birthYear>=44 & birthYear<=50 
replace lott=110 if birthMonth==6 & birthDay==6 & birthYear>=44 & birthYear<=50 
replace lott=85  if birthMonth==6 & birthDay==7 & birthYear>=44 & birthYear<=50 
replace lott=366 if birthMonth==6 & birthDay==8 & birthYear>=44 & birthYear<=50 
replace lott=335 if birthMonth==6 & birthDay==9 & birthYear>=44 & birthYear<=50 
replace lott=206 if birthMonth==6 & birthDay==10 & birthYear>=44 & birthYear<=50 
replace lott=134 if birthMonth==6 & birthDay==11 & birthYear>=44 & birthYear<=50
replace lott=272 if birthMonth==6 & birthDay==12 & birthYear>=44 & birthYear<=50
replace lott=69  if birthMonth==6 & birthDay==13 & birthYear>=44 & birthYear<=50 
replace lott=356 if birthMonth==6 & birthDay==14 & birthYear>=44 & birthYear<=50 
replace lott=180 if birthMonth==6 & birthDay==15 & birthYear>=44 & birthYear<=50 
replace lott=274 if birthMonth==6 & birthDay==16 & birthYear>=44 & birthYear<=50 
replace lott=73  if birthMonth==6 & birthDay==17 & birthYear>=44 & birthYear<=50 
replace lott=341 if birthMonth==6 & birthDay==18 & birthYear>=44 & birthYear<=50
replace lott=104 if  birthMonth==6 & birthDay==19 & birthYear>=44 & birthYear<=50 
replace lott=360 if birthMonth==6 & birthDay==20 & birthYear>=44 & birthYear<=50 
replace lott=60  if birthMonth==6 & birthDay==21 & birthYear>=44 & birthYear<=50 
replace lott=247 if birthMonth==6 & birthDay==22 & birthYear>=44 & birthYear<=50
replace lott=109 if birthMonth==6 & birthDay==23 & birthYear>=44 & birthYear<=50
replace lott=358 if  birthMonth==6 & birthDay==24 & birthYear>=44 & birthYear<=50
replace lott=137 if  birthMonth==6 & birthDay==25 & birthYear>=44 & birthYear<=50 
replace lott=22  if  birthMonth==6 & birthDay==26 & birthYear>=44 & birthYear<=50
replace lott=64  if birthMonth==6 & birthDay==27 & birthYear>=44 & birthYear<=50 
replace lott=222 if  birthMonth==6 & birthDay==28 & birthYear>=44 & birthYear<=50 
replace lott=353 if birthMonth==6 & birthDay==29 & birthYear>=44 & birthYear<=50 
replace lott=209 if birthMonth==6 & birthDay==30 & birthYear>=44 & birthYear<=50

*07/1944-1950
replace lott=93  if birthMonth==7 & birthDay==1 & birthYear>=44 & birthYear<=50
replace lott=350 if birthMonth==7 & birthDay==2 & birthYear>=44 & birthYear<=50 
replace lott=115 if birthMonth==7 & birthDay==3 & birthYear>=44 & birthYear<=50 
replace lott=279 if birthMonth==7 & birthDay==4 & birthYear>=44 & birthYear<=50 
replace lott=188 if birthMonth==7 & birthDay==5 & birthYear>=44 & birthYear<=50 
replace lott=327 if birthMonth==7 & birthDay==6 & birthYear>=44 & birthYear<=50
replace lott=50  if birthMonth==7 & birthDay==7 & birthYear>=44 & birthYear<=50
replace lott=13  if birthMonth==7 & birthDay==8 & birthYear>=44 & birthYear<=50 
replace lott=277 if birthMonth==7 & birthDay==9 & birthYear>=44 & birthYear<=50
replace lott=284 if birthMonth==7 & birthDay==10 & birthYear>=44 & birthYear<=50 
replace lott=248 if birthMonth==7 & birthDay==11 & birthYear>=44 & birthYear<=50
replace lott=15  if birthMonth==7 & birthDay==12 & birthYear>=44 & birthYear<=50
replace lott=42  if birthMonth==7 & birthDay==13 & birthYear>=44 & birthYear<=50
replace lott=331 if birthMonth==7 & birthDay==14 & birthYear>=44 & birthYear<=50
replace lott=322 if birthMonth==7 & birthDay==15 & birthYear>=44 & birthYear<=50
replace lott=120 if birthMonth==7 & birthDay==16 & birthYear>=44 & birthYear<=50 
replace lott=98  if birthMonth==7 & birthDay==17 & birthYear>=44 & birthYear<=50
replace lott=190 if birthMonth==7 & birthDay==18 & birthYear>=44 & birthYear<=50
replace lott=227 if  birthMonth==7 & birthDay==19 & birthYear>=44 & birthYear<=50
replace lott=187 if birthMonth==7 & birthDay==20 & birthYear>=44 & birthYear<=50
replace lott=27  if birthMonth==7 & birthDay==21 & birthYear>=44 & birthYear<=50
replace lott=153 if birthMonth==7 & birthDay==22 & birthYear>=44 & birthYear<=50
replace lott=172 if birthMonth==7 & birthDay==23 & birthYear>=44 & birthYear<=50
replace lott=23  if  birthMonth==7 & birthDay==24 & birthYear>=44 & birthYear<=50
replace lott=67  if  birthMonth==7 & birthDay==25 & birthYear>=44 & birthYear<=50
replace lott=303 if  birthMonth==7 & birthDay==26 & birthYear>=44 & birthYear<=50
replace lott=289 if birthMonth==7 & birthDay==27 & birthYear>=44 & birthYear<=50
replace lott=88  if  birthMonth==7 & birthDay==28 & birthYear>=44 & birthYear<=50
replace lott=270 if birthMonth==7 & birthDay==29 & birthYear>=44 & birthYear<=50
replace lott=287 if birthMonth==7 & birthDay==30 & birthYear>=44 & birthYear<=50
replace lott=193 if birthMonth==7 & birthDay==31 & birthYear>=44 & birthYear<=50

*08/1944-1950
replace lott=111  if birthMonth==8 & birthDay==1 & birthYear>=44 & birthYear<=50
replace lott=45  if birthMonth==8 & birthDay==2 & birthYear>=44 & birthYear<=50
replace lott=261 if birthMonth==8 & birthDay==3 & birthYear>=44 & birthYear<=50
replace lott=145 if birthMonth==8 & birthDay==4 & birthYear>=44 & birthYear<=50
replace lott=54  if birthMonth==8 & birthDay==5 & birthYear>=44 & birthYear<=50
replace lott=114 if birthMonth==8 & birthDay==6 & birthYear>=44 & birthYear<=50
replace lott=168 if birthMonth==8 & birthDay==7 & birthYear>=44 & birthYear<=50
replace lott=48  if birthMonth==8 & birthDay==8 & birthYear>=44 & birthYear<=50
replace lott=106 if birthMonth==8 & birthDay==9 & birthYear>=44 & birthYear<=50
replace lott=21  if birthMonth==8 & birthDay==10 & birthYear>=44 & birthYear<=50
replace lott=324 if birthMonth==8 & birthDay==11 & birthYear>=44 & birthYear<=50
replace lott=142 if birthMonth==8 & birthDay==12 & birthYear>=44 & birthYear<=50
replace lott=307 if birthMonth==8 & birthDay==13 & birthYear>=44 & birthYear<=50 
replace lott=198 if birthMonth==8 & birthDay==14 & birthYear>=44 & birthYear<=50
replace lott=102 if birthMonth==8 & birthDay==15 & birthYear>=44 & birthYear<=50
replace lott=44  if birthMonth==8 & birthDay==16 & birthYear>=44 & birthYear<=50
replace lott=154 if birthMonth==8 & birthDay==17 & birthYear>=44 & birthYear<=50
replace lott=141 if birthMonth==8 & birthDay==18 & birthYear>=44 & birthYear<=50
replace lott=311 if  birthMonth==8 & birthDay==19 & birthYear>=44 & birthYear<=50
replace lott=344 if birthMonth==8 & birthDay==20 & birthYear>=44 & birthYear<=50
replace lott=291 if birthMonth==8 & birthDay==21 & birthYear>=44 & birthYear<=50
replace lott=339 if birthMonth==8 & birthDay==22 & birthYear>=44 & birthYear<=50
replace lott=116 if birthMonth==8 & birthDay==23 & birthYear>=44 & birthYear<=50
replace lott=36  if  birthMonth==8 & birthDay==24 & birthYear>=44 & birthYear<=50
replace lott=286 if  birthMonth==8 & birthDay==25 & birthYear>=44 & birthYear<=50
replace lott=245 if  birthMonth==8 & birthDay==26 & birthYear>=44 & birthYear<=50
replace lott=352 if birthMonth==8 & birthDay==27 & birthYear>=44 & birthYear<=50
replace lott=167 if  birthMonth==8 & birthDay==28 & birthYear>=44 & birthYear<=50
replace lott=61  if birthMonth==8 & birthDay==29 & birthYear>=44 & birthYear<=50
replace lott=333 if birthMonth==8 & birthDay==30 & birthYear>=44 & birthYear<=50
replace lott=11  if birthMonth==8 & birthDay==31 & birthYear>=44 & birthYear<=50

*09/1944-1950
replace lott=225  if birthMonth==9 & birthDay==1 & birthYear>=44 & birthYear<=50
replace lott=161  if birthMonth==9 & birthDay==2 & birthYear>=44 & birthYear<=50
replace lott=49   if birthMonth==9 & birthDay==3 & birthYear>=44 & birthYear<=50
replace lott=232  if birthMonth==9 & birthDay==4 & birthYear>=44 & birthYear<=50
replace lott=82   if birthMonth==9 & birthDay==5 & birthYear>=44 & birthYear<=50 
replace lott=6    if birthMonth==9 & birthDay==6 & birthYear>=44 & birthYear<=50
replace lott=8    if birthMonth==9 & birthDay==7 & birthYear>=44 & birthYear<=50
replace lott=184  if birthMonth==9 & birthDay==8 & birthYear>=44 & birthYear<=50
replace lott=263  if birthMonth==9 & birthDay==9 & birthYear>=44 & birthYear<=50
replace lott=71   if birthMonth==9 & birthDay==10 & birthYear>=44 & birthYear<=50
replace lott=158  if birthMonth==9 & birthDay==11 & birthYear>=44 & birthYear<=50
replace lott=242  if birthMonth==9 & birthDay==12 & birthYear>=44 & birthYear<=50
replace lott=175  if birthMonth==9 & birthDay==13 & birthYear>=44 & birthYear<=50
replace lott=1    if birthMonth==9 & birthDay==14 & birthYear>=44 & birthYear<=50
replace lott=113  if birthMonth==9 & birthDay==15 & birthYear>=44 & birthYear<=50
replace lott=207  if birthMonth==9 & birthDay==16 & birthYear>=44 & birthYear<=50
replace lott=255  if birthMonth==9 & birthDay==17 & birthYear>=44 & birthYear<=50
replace lott=246  if birthMonth==9 & birthDay==18 & birthYear>=44 & birthYear<=50
replace lott=177  if  birthMonth==9 & birthDay==19 & birthYear>=44 & birthYear<=50
replace lott=63   if birthMonth==9 & birthDay==20 & birthYear>=44 & birthYear<=50
replace lott=204  if birthMonth==9 & birthDay==21 & birthYear>=44 & birthYear<=50
replace lott=160  if birthMonth==9 & birthDay==22 & birthYear>=44 & birthYear<=50
replace lott=119  if birthMonth==9 & birthDay==23 & birthYear>=44 & birthYear<=50
replace lott=195  if  birthMonth==9 & birthDay==24 & birthYear>=44 & birthYear<=50
replace lott=149  if  birthMonth==9 & birthDay==25 & birthYear>=44 & birthYear<=50
replace lott=18   if  birthMonth==9 & birthDay==26 & birthYear>=44 & birthYear<=50
replace lott=233  if birthMonth==9 & birthDay==27 & birthYear>=44 & birthYear<=50
replace lott=257  if  birthMonth==9 & birthDay==28 & birthYear>=44 & birthYear<=50
replace lott=151  if birthMonth==9 & birthDay==29 & birthYear>=44 & birthYear<=50
replace lott=315  if birthMonth==9 & birthDay==30 & birthYear>=44 & birthYear<=50

*10/1944-1950
replace lott=359  if birthMonth==10 & birthDay==1 & birthYear>=44 & birthYear<=50
replace lott=125  if birthMonth==10 & birthDay==2 & birthYear>=44 & birthYear<=50
replace lott=244   if birthMonth==10 & birthDay==3 & birthYear>=44 & birthYear<=50 
replace lott=202  if birthMonth==10 & birthDay==4 & birthYear>=44 & birthYear<=50
replace lott=24   if birthMonth==10 & birthDay==5 & birthYear>=44 & birthYear<=50
replace lott=87    if birthMonth==10 & birthDay==6 & birthYear>=44 & birthYear<=50
replace lott=234    if birthMonth==10 & birthDay==7 & birthYear>=44 & birthYear<=50
replace lott=283  if birthMonth==10 & birthDay==8 & birthYear>=44 & birthYear<=50
replace lott=342  if birthMonth==10 & birthDay==9 & birthYear>=44 & birthYear<=50
replace lott=220   if birthMonth==10 & birthDay==10 & birthYear>=44 & birthYear<=50
replace lott=237  if birthMonth==10 & birthDay==11 & birthYear>=44 & birthYear<=50
replace lott=72  if birthMonth==10 & birthDay==12 & birthYear>=44 & birthYear<=50
replace lott=138  if birthMonth==10 & birthDay==13 & birthYear>=44 & birthYear<=50
replace lott=294    if birthMonth==10 & birthDay==14 & birthYear>=44 & birthYear<=50
replace lott=171  if birthMonth==10 & birthDay==15 & birthYear>=44 & birthYear<=50
replace lott=254  if birthMonth==10 & birthDay==16 & birthYear>=44 & birthYear<=50
replace lott=288  if birthMonth==10 & birthDay==17 & birthYear>=44 & birthYear<=50
replace lott=5  if birthMonth==10 & birthDay==18 & birthYear>=44 & birthYear<=50
replace lott=241  if birthMonth==10 & birthDay==19 & birthYear>=44 & birthYear<=50
replace lott=192   if birthMonth==10 & birthDay==20 & birthYear>=44 & birthYear<=50
replace lott=243  if birthMonth==10 & birthDay==21 & birthYear>=44 & birthYear<=50
replace lott=117  if birthMonth==10 & birthDay==22 & birthYear>=44 & birthYear<=50
replace lott=201  if birthMonth==10 & birthDay==23 & birthYear>=44 & birthYear<=50
replace lott=196  if birthMonth==10 & birthDay==24 & birthYear>=44 & birthYear<=50
replace lott=176  if birthMonth==10 & birthDay==25 & birthYear>=44 & birthYear<=50
replace lott=7   if birthMonth==10 & birthDay==26 & birthYear>=44 & birthYear<=50
replace lott=264  if birthMonth==10 & birthDay==27 & birthYear>=44 & birthYear<=50
replace lott=94  if birthMonth==10 & birthDay==28 & birthYear>=44 & birthYear<=50
replace lott=229  if birthMonth==10 & birthDay==29 & birthYear>=44 & birthYear<=50
replace lott=38  if birthMonth==10 & birthDay==30 & birthYear>=44 & birthYear<=50
replace lott=79  if birthMonth==10 & birthDay==31 & birthYear>=44 & birthYear<=50

*11/1944-1950
replace lott=19  if birthMonth==11 & birthDay==1 & birthYear>=44 & birthYear<=50
replace lott=34  if birthMonth==11 & birthDay==2 & birthYear>=44 & birthYear<=50 
replace lott=348 if birthMonth==11 & birthDay==3 & birthYear>=44 & birthYear<=50
replace lott=266 if birthMonth==11 & birthDay==4 & birthYear>=44 & birthYear<=50
replace lott=310 if birthMonth==11 & birthDay==5 & birthYear>=44 & birthYear<=50
replace lott=76  if birthMonth==11 & birthDay==6 & birthYear>=44 & birthYear<=50
replace lott=51  if birthMonth==11 & birthDay==7 & birthYear>=44 & birthYear<=50
replace lott=97  if birthMonth==11 & birthDay==8 & birthYear>=44 & birthYear<=50
replace lott=80  if birthMonth==11 & birthDay==9 & birthYear>=44 & birthYear<=50
replace lott=282 if birthMonth==11 & birthDay==10 & birthYear>=44 & birthYear<=50
replace lott=46  if birthMonth==11 & birthDay==11 & birthYear>=44 & birthYear<=50
replace lott=66  if birthMonth==11 & birthDay==12 & birthYear>=44 & birthYear<=50
replace lott=126 if birthMonth==11 & birthDay==13 & birthYear>=44 & birthYear<=50
replace lott=127 if birthMonth==11 & birthDay==14 & birthYear>=44 & birthYear<=50
replace lott=131 if birthMonth==11 & birthDay==15 & birthYear>=44 & birthYear<=50
replace lott=107 if birthMonth==11 & birthDay==16 & birthYear>=44 & birthYear<=50
replace lott=143 if birthMonth==11 & birthDay==17 & birthYear>=44 & birthYear<=50
replace lott=146 if birthMonth==11 & birthDay==18 & birthYear>=44 & birthYear<=50
replace lott=203 if birthMonth==11 & birthDay==19 & birthYear>=44 & birthYear<=50
replace lott=185 if birthMonth==11 & birthDay==20 & birthYear>=44 & birthYear<=50
replace lott=156 if birthMonth==11 & birthDay==21 & birthYear>=44 & birthYear<=50
replace lott=9   if birthMonth==11 & birthDay==22 & birthYear>=44 & birthYear<=50
replace lott=182 if birthMonth==11 & birthDay==23 & birthYear>=44 & birthYear<=50
replace lott=230 if birthMonth==11 & birthDay==24 & birthYear>=44 & birthYear<=50
replace lott=132 if birthMonth==11 & birthDay==25 & birthYear>=44 & birthYear<=50
replace lott=309 if birthMonth==11 & birthDay==26 & birthYear>=44 & birthYear<=50
replace lott=47  if birthMonth==11 & birthDay==27 & birthYear>=44 & birthYear<=50
replace lott=281 if birthMonth==11 & birthDay==28 & birthYear>=44 & birthYear<=50
replace lott=99  if birthMonth==11 & birthDay==29 & birthYear>=44 & birthYear<=50
replace lott=174 if birthMonth==11 & birthDay==30 & birthYear>=44 & birthYear<=50

*12/1944-1950
replace lott=129 if birthMonth==12 & birthDay==1 & birthYear>=44 & birthYear<=50
replace lott=328 if birthMonth==12 & birthDay==2 & birthYear>=44 & birthYear<=50
replace lott=157 if birthMonth==12 & birthDay==3 & birthYear>=44 & birthYear<=50
replace lott=165 if birthMonth==12 & birthDay==4 & birthYear>=44 & birthYear<=50
replace lott=56  if birthMonth==12 & birthDay==5 & birthYear>=44 & birthYear<=50
replace lott=10  if birthMonth==12 & birthDay==6 & birthYear>=44 & birthYear<=50 
replace lott=12  if birthMonth==12 & birthDay==7 & birthYear>=44 & birthYear<=50
replace lott=105 if birthMonth==12 & birthDay==8 & birthYear>=44 & birthYear<=50
replace lott=43  if birthMonth==12 & birthDay==9 & birthYear>=44 & birthYear<=50
replace lott=41  if birthMonth==12 & birthDay==10 & birthYear>=44 & birthYear<=50
replace lott=39  if birthMonth==12 & birthDay==11 & birthYear>=44 & birthYear<=50
replace lott=314 if birthMonth==12 & birthDay==12 & birthYear>=44 & birthYear<=50
replace lott=163 if birthMonth==12 & birthDay==13 & birthYear>=44 & birthYear<=50
replace lott=26  if birthMonth==12 & birthDay==14 & birthYear>=44 & birthYear<=50
replace lott=320 if birthMonth==12 & birthDay==15 & birthYear>=44 & birthYear<=50
replace lott=96  if birthMonth==12 & birthDay==16 & birthYear>=44 & birthYear<=50
replace lott=304 if birthMonth==12 & birthDay==17 & birthYear>=44 & birthYear<=50
replace lott=128 if birthMonth==12 & birthDay==18 & birthYear>=44 & birthYear<=50
replace lott=240 if birthMonth==12 & birthDay==19 & birthYear>=44 & birthYear<=50
replace lott=135 if birthMonth==12 & birthDay==20 & birthYear>=44 & birthYear<=50
replace lott=70  if birthMonth==12 & birthDay==21 & birthYear>=44 & birthYear<=50
replace lott=53  if birthMonth==12 & birthDay==22 & birthYear>=44 & birthYear<=50
replace lott=162 if birthMonth==12 & birthDay==23 & birthYear>=44 & birthYear<=50
replace lott=95  if birthMonth==12 & birthDay==24 & birthYear>=44 & birthYear<=50
replace lott=84  if birthMonth==12 & birthDay==25 & birthYear>=44 & birthYear<=50
replace lott=173 if birthMonth==12 & birthDay==26 & birthYear>=44 & birthYear<=50
replace lott=78  if birthMonth==12 & birthDay==27 & birthYear>=44 & birthYear<=50
replace lott=123 if birthMonth==12 & birthDay==28 & birthYear>=44 & birthYear<=50
replace lott=16  if birthMonth==12 & birthDay==29 & birthYear>=44 & birthYear<=50 
replace lott=3   if birthMonth==12 & birthDay==30 & birthYear>=44 & birthYear<=50
replace lott=100 if birthMonth==12 & birthDay==31 & birthYear>=44 & birthYear<=50


*1/1951
replace lott=133 if birthMonth==1 & birthDay==1 & birthYear==51
replace lott=195 if birthMonth==1 & birthDay==2 & birthYear==51 
replace lott=336 if birthMonth==1 & birthDay==3 & birthYear==51 
replace lott=99  if birthMonth==1 & birthDay==4 & birthYear==51
replace lott=33  if birthMonth==1 & birthDay==5 & birthYear==51
replace lott=285 if birthMonth==1 & birthDay==6 & birthYear==51
replace lott=159 if birthMonth==1 & birthDay==7 & birthYear==51
replace lott=116 if birthMonth==1 & birthDay==8 & birthYear==51
replace lott=53  if birthMonth==1 & birthDay==9 & birthYear==51
replace lott=101 if birthMonth==1 & birthDay==10 & birthYear==51
replace lott=144 if birthMonth==1 & birthDay==11 & birthYear==51
replace lott=152 if birthMonth==1 & birthDay==12 & birthYear==51
replace lott=330 if birthMonth==1 & birthDay==13 & birthYear==51
replace lott=71  if birthMonth==1 & birthDay==14 & birthYear==51
replace lott=75  if birthMonth==1 & birthDay==15 & birthYear==51
replace lott=136 if birthMonth==1 & birthDay==16 & birthYear==51
replace lott=54  if birthMonth==1 & birthDay==17 & birthYear==51
replace lott=185 if birthMonth==1 & birthDay==18 & birthYear==51
replace lott=188 if birthMonth==1 & birthDay==19 & birthYear==51
replace lott=211 if birthMonth==1 & birthDay==20 & birthYear==51
replace lott=129 if birthMonth==1 & birthDay==21 & birthYear==51
replace lott=132 if birthMonth==1 & birthDay==22 & birthYear==51
replace lott=48  if birthMonth==1 & birthDay==23 & birthYear==51
replace lott=177 if birthMonth==1 & birthDay==24 & birthYear==51
replace lott=57  if birthMonth==1 & birthDay==25 & birthYear==51
replace lott=140 if birthMonth==1 & birthDay==26 & birthYear==51
replace lott=173 if birthMonth==1 & birthDay==27 & birthYear==51
replace lott=346 if birthMonth==1 & birthDay==28 & birthYear==51
replace lott=277 if birthMonth==1 & birthDay==29 & birthYear==51
replace lott=112 if birthMonth==1 & birthDay==30 & birthYear==51
replace lott=60  if birthMonth==1 & birthDay==31 & birthYear==51 

*02/1951
replace lott=335  if birthMonth==2 & birthDay==1 & birthYear==51
replace lott=354 if birthMonth==2 & birthDay==2 & birthYear==51
replace lott=186 if birthMonth==2 & birthDay==3 & birthYear==51
replace lott=94 if birthMonth==2 & birthDay==4 & birthYear==51
replace lott=97 if birthMonth==2 & birthDay==5 & birthYear==51
replace lott=16 if birthMonth==2 & birthDay==6 & birthYear==51
replace lott=25  if birthMonth==2 & birthDay==7 & birthYear==51
replace lott=127 if birthMonth==2 & birthDay==8 & birthYear==51
replace lott=187 if birthMonth==2 & birthDay==9 & birthYear==51
replace lott=46 if birthMonth==2 & birthDay==10 & birthYear==51
replace lott=227 if birthMonth==2 & birthDay==11 & birthYear==51
replace lott=262  if birthMonth==2 & birthDay==12 & birthYear==51
replace lott=13 if birthMonth==2 & birthDay==13 & birthYear==51
replace lott=260   if birthMonth==2 & birthDay==14 & birthYear==51
replace lott=201  if birthMonth==2 & birthDay==15 & birthYear==51
replace lott=334 if birthMonth==2 & birthDay==16 & birthYear==51
replace lott=345 if birthMonth==2 & birthDay==17 & birthYear==51
replace lott=337 if birthMonth==2 & birthDay==18 & birthYear==51
replace lott=331  if birthMonth==2 & birthDay==19 & birthYear==51
replace lott=20 if birthMonth==2 & birthDay==20 & birthYear==51
replace lott=213 if birthMonth==2 & birthDay==21 & birthYear==51
replace lott=271 if birthMonth==2 & birthDay==22 & birthYear==51
replace lott=351  if birthMonth==2 & birthDay==23 & birthYear==51
replace lott=226 if birthMonth==2 & birthDay==24 & birthYear==51
replace lott=325 if birthMonth==2 & birthDay==25 & birthYear==51
replace lott=86 if birthMonth==2 & birthDay==26 & birthYear==51
replace lott=66 if birthMonth==2 & birthDay==27 & birthYear==51
replace lott=234 if birthMonth==2 & birthDay==28 & birthYear==51 

*03/1951
replace lott=14 if birthMonth==3 & birthDay==1 & birthYear==51
replace lott=77  if birthMonth==3 & birthDay==2 & birthYear==51
replace lott=207 if birthMonth==3 & birthDay==3 & birthYear==51
replace lott=117 if birthMonth==3 & birthDay==4 & birthYear==51
replace lott=299 if birthMonth==3 & birthDay==5 & birthYear==51
replace lott=296 if birthMonth==3 & birthDay==6 & birthYear==51
replace lott=141 if birthMonth==3 & birthDay==7 & birthYear==51
replace lott=79 if birthMonth==3 & birthDay==8 & birthYear==51
replace lott=278 if birthMonth==3 & birthDay==9 & birthYear==51
replace lott=150 if birthMonth==3 & birthDay==10 & birthYear==51
replace lott=317 if birthMonth==3 & birthDay==11 & birthYear==51
replace lott=24 if birthMonth==3 & birthDay==12 & birthYear==51
replace lott=241 if birthMonth==3 & birthDay==13 & birthYear==51
replace lott=12 if birthMonth==3 & birthDay==14 & birthYear==51
replace lott=157 if birthMonth==3 & birthDay==15 & birthYear==51
replace lott=258 if birthMonth==3 & birthDay==16 & birthYear==51
replace lott=220  if birthMonth==3 & birthDay==17 & birthYear==51
replace lott=319 if birthMonth==3 & birthDay==18 & birthYear==51
replace lott=189 if  birthMonth==3 & birthDay==19 & birthYear==51
replace lott=170 if birthMonth==3 & birthDay==20 & birthYear==51
replace lott=246 if birthMonth==3 & birthDay==21 & birthYear==51
replace lott=269 if birthMonth==3 & birthDay==22 & birthYear==51
replace lott=281 if birthMonth==3 & birthDay==23 & birthYear==51
replace lott=203 if  birthMonth==3 & birthDay==24 & birthYear==51
replace lott=298 if  birthMonth==3 & birthDay==25 & birthYear==51
replace lott=121 if  birthMonth==3 & birthDay==26 & birthYear==51
replace lott=254 if birthMonth==3 & birthDay==27 & birthYear==51
replace lott=95 if  birthMonth==3 & birthDay==28 & birthYear==51 
replace lott=147 if birthMonth==3 & birthDay==29 & birthYear==51
replace lott=56 if birthMonth==3 & birthDay==30 & birthYear==51
replace lott=38  if birthMonth==3 & birthDay==31 & birthYear==51

*04/1951
replace lott=224 if birthMonth==4 & birthDay==1 & birthYear==51
replace lott=216  if birthMonth==4 & birthDay==2 & birthYear==51
replace lott=297 if birthMonth==4 & birthDay==3 & birthYear==51
replace lott=37 if birthMonth==4 & birthDay==4 & birthYear==51
replace lott=124 if birthMonth==4 & birthDay==5 & birthYear==51
replace lott=312 if birthMonth==4 & birthDay==6 & birthYear==51 
replace lott=142 if birthMonth==4 & birthDay==7 & birthYear==51 
replace lott=267 if birthMonth==4 & birthDay==8 & birthYear==51 
replace lott=223 if birthMonth==4 & birthDay==9 & birthYear==51
replace lott=165 if birthMonth==4 & birthDay==10 & birthYear==51 
replace lott=178 if birthMonth==4 & birthDay==11 & birthYear==51
replace lott=89 if birthMonth==4 & birthDay==12 & birthYear==51 
replace lott=143 if birthMonth==4 & birthDay==13 & birthYear==51
replace lott=202 if birthMonth==4 & birthDay==14 & birthYear==51
replace lott=182 if birthMonth==4 & birthDay==15 & birthYear==51 
replace lott=31 if birthMonth==4 & birthDay==16 & birthYear==51 
replace lott=264  if birthMonth==4 & birthDay==17 & birthYear==51 
replace lott=138 if birthMonth==4 & birthDay==18 & birthYear==51
replace lott=62 if  birthMonth==4 & birthDay==19 & birthYear==51 
replace lott=118 if birthMonth==4 & birthDay==20 & birthYear==51 
replace lott=8 if birthMonth==4 & birthDay==21 & birthYear==51 
replace lott=256 if birthMonth==4 & birthDay==22 & birthYear==51 
replace lott=292 if birthMonth==4 & birthDay==23 & birthYear==51
replace lott=244 if  birthMonth==4 & birthDay==24 & birthYear==51
replace lott=328 if  birthMonth==4 & birthDay==25 & birthYear==51
replace lott=137 if  birthMonth==4 & birthDay==26 & birthYear==51
replace lott=235 if birthMonth==4 & birthDay==27 & birthYear==51 
replace lott=82 if  birthMonth==4 & birthDay==28 & birthYear==51 
replace lott=111 if birthMonth==4 & birthDay==29 & birthYear==51
replace lott=358 if birthMonth==4 & birthDay==30 & birthYear==51
	
*05/1951
replace lott=179 if birthMonth==5 & birthDay==1 & birthYear==51
replace lott=96 if birthMonth==5 & birthDay==2 & birthYear==51
replace lott=171  if birthMonth==5 & birthDay==3 & birthYear==51 
replace lott=240 if birthMonth==5 & birthDay==4 & birthYear==51
replace lott=301 if birthMonth==5 & birthDay==5 & birthYear==51 
replace lott=268 if birthMonth==5 & birthDay==6 & birthYear==51 
replace lott=29  if birthMonth==5 & birthDay==7 & birthYear==51 
replace lott=105 if birthMonth==5 & birthDay==8 & birthYear==51
replace lott=357 if birthMonth==5 & birthDay==9 & birthYear==51
replace lott=146  if birthMonth==5 & birthDay==10 & birthYear==51
replace lott=293  if birthMonth==5 & birthDay==11 & birthYear==51
replace lott=210 if birthMonth==5 & birthDay==12 & birthYear==51
replace lott=353 if birthMonth==5 & birthDay==13 & birthYear==51
replace lott=40 if birthMonth==5 & birthDay==14 & birthYear==51
replace lott=344 if birthMonth==5 & birthDay==15 & birthYear==51
replace lott=175  if birthMonth==5 & birthDay==16 & birthYear==51
replace lott=212 if birthMonth==5 & birthDay==17 & birthYear==51
replace lott=180 if birthMonth==5 & birthDay==18 & birthYear==51
replace lott=155  if  birthMonth==5 & birthDay==19 & birthYear==51
replace lott=242 if birthMonth==5 & birthDay==20 & birthYear==51
replace lott=225 if birthMonth==5 & birthDay==21 & birthYear==51
replace lott=199 if birthMonth==5 & birthDay==22 & birthYear==51
replace lott=222 if birthMonth==5 & birthDay==23 & birthYear==51
replace lott=22  if  birthMonth==5 & birthDay==24 & birthYear==51
replace lott=26 if  birthMonth==5 & birthDay==25 & birthYear==51
replace lott=148 if  birthMonth==5 & birthDay==26 & birthYear==51
replace lott=122 if birthMonth==5 & birthDay==27 & birthYear==51
replace lott=9 if  birthMonth==5 & birthDay==28 & birthYear==51
replace lott=61 if birthMonth==5 & birthDay==29 & birthYear==51
replace lott=209 if birthMonth==5 & birthDay==30 & birthYear==51
replace lott=350 if birthMonth==5 & birthDay==31 & birthYear==51

*06/1951
replace lott=65 if birthMonth==6 & birthDay==1 & birthYear==51
replace lott=304 if birthMonth==6 & birthDay==2 & birthYear==51
replace lott=135 if birthMonth==6 & birthDay==3 & birthYear==51
replace lott=42  if birthMonth==6 & birthDay==4 & birthYear==51
replace lott=233  if birthMonth==6 & birthDay==5 & birthYear==51
replace lott=153 if birthMonth==6 & birthDay==6 & birthYear==51
replace lott=169  if birthMonth==6 & birthDay==7 & birthYear==51
replace lott=7 if birthMonth==6 & birthDay==8 & birthYear==51
replace lott=352 if birthMonth==6 & birthDay==9 & birthYear==51
replace lott=76 if birthMonth==6 & birthDay==10 & birthYear==51
replace lott=355 if birthMonth==6 & birthDay==11 & birthYear==51
replace lott=51 if birthMonth==6 & birthDay==12 & birthYear==51
replace lott=342  if birthMonth==6 & birthDay==13 & birthYear==51
replace lott=363 if birthMonth==6 & birthDay==14 & birthYear==51
replace lott=276 if birthMonth==6 & birthDay==15 & birthYear==51
replace lott=229 if birthMonth==6 & birthDay==16 & birthYear==51
replace lott=289  if birthMonth==6 & birthDay==17 & birthYear==51
replace lott=214 if birthMonth==6 & birthDay==18 & birthYear==51
replace lott=163 if  birthMonth==6 & birthDay==19 & birthYear==51
replace lott=43 if birthMonth==6 & birthDay==20 & birthYear==51
replace lott=113  if birthMonth==6 & birthDay==21 & birthYear==51
replace lott=307 if birthMonth==6 & birthDay==22 & birthYear==51
replace lott=44 if birthMonth==6 & birthDay==23 & birthYear==51
replace lott=236 if  birthMonth==6 & birthDay==24 & birthYear==51
replace lott=327 if  birthMonth==6 & birthDay==25 & birthYear==51
replace lott=308  if  birthMonth==6 & birthDay==26 & birthYear==51
replace lott=55  if birthMonth==6 & birthDay==27 & birthYear==51
replace lott=215 if  birthMonth==6 & birthDay==28 & birthYear==51
replace lott=154 if birthMonth==6 & birthDay==29 & birthYear==51
replace lott=217 if birthMonth==6 & birthDay==30 & birthYear==51

*07/1951
replace lott=104  if birthMonth==7 & birthDay==1 & birthYear==51
replace lott=322 if birthMonth==7 & birthDay==2 & birthYear==51
replace lott=30 if birthMonth==7 & birthDay==3 & birthYear==51
replace lott=59 if birthMonth==7 & birthDay==4 & birthYear==51
replace lott=287 if birthMonth==7 & birthDay==5 & birthYear==51
replace lott=164 if birthMonth==7 & birthDay==6 & birthYear==51
replace lott=365  if birthMonth==7 & birthDay==7 & birthYear==51
replace lott=106  if birthMonth==7 & birthDay==8 & birthYear==51
replace lott=1 if birthMonth==7 & birthDay==9 & birthYear==51
replace lott=158 if birthMonth==7 & birthDay==10 & birthYear==51
replace lott=174 if birthMonth==7 & birthDay==11 & birthYear==51
replace lott=257  if birthMonth==7 & birthDay==12 & birthYear==51
replace lott=349  if birthMonth==7 & birthDay==13 & birthYear==51
replace lott=156 if birthMonth==7 & birthDay==14 & birthYear==51
replace lott=273 if birthMonth==7 & birthDay==15 & birthYear==51
replace lott=284 if birthMonth==7 & birthDay==16 & birthYear==51
replace lott=341  if birthMonth==7 & birthDay==17 & birthYear==51
replace lott=90 if birthMonth==7 & birthDay==18 & birthYear==51
replace lott=316 if  birthMonth==7 & birthDay==19 & birthYear==51
replace lott=120 if birthMonth==7 & birthDay==20 & birthYear==51
replace lott=356  if birthMonth==7 & birthDay==21 & birthYear==51
replace lott=282 if birthMonth==7 & birthDay==22 & birthYear==51
replace lott=172 if birthMonth==7 & birthDay==23 & birthYear==51
replace lott=360  if  birthMonth==7 & birthDay==24 & birthYear==51
replace lott=3  if  birthMonth==7 & birthDay==25 & birthYear==51
replace lott=47 if  birthMonth==7 & birthDay==26 & birthYear==51
replace lott=85 if birthMonth==7 & birthDay==27 & birthYear==51
replace lott=190  if  birthMonth==7 & birthDay==28 & birthYear==51
replace lott=4 if birthMonth==7 & birthDay==29 & birthYear==51
replace lott=15 if birthMonth==7 & birthDay==30 & birthYear==51
replace lott=221 if birthMonth==7 & birthDay==31 & birthYear==51

*08/1951
replace lott=326  if birthMonth==8 & birthDay==1 & birthYear==51
replace lott=102  if birthMonth==8 & birthDay==2 & birthYear==51
replace lott=279 if birthMonth==8 & birthDay==3 & birthYear==51
replace lott=300 if birthMonth==8 & birthDay==4 & birthYear==51
replace lott=64  if birthMonth==8 & birthDay==5 & birthYear==51
replace lott=251 if birthMonth==8 & birthDay==6 & birthYear==51 
replace lott=263 if birthMonth==8 & birthDay==7 & birthYear==51
replace lott=49  if birthMonth==8 & birthDay==8 & birthYear==51
replace lott=125 if birthMonth==8 & birthDay==9 & birthYear==51
replace lott=359  if birthMonth==8 & birthDay==10 & birthYear==51
replace lott=230 if birthMonth==8 & birthDay==11 & birthYear==51
replace lott=320 if birthMonth==8 & birthDay==12 & birthYear==51
replace lott=58 if birthMonth==8 & birthDay==13 & birthYear==51
replace lott=103 if birthMonth==8 & birthDay==14 & birthYear==51
replace lott=270 if birthMonth==8 & birthDay==15 & birthYear==51
replace lott=329  if birthMonth==8 & birthDay==16 & birthYear==51
replace lott=343 if birthMonth==8 & birthDay==17 & birthYear==51
replace lott=109 if birthMonth==8 & birthDay==18 & birthYear==51
replace lott=83 if  birthMonth==8 & birthDay==19 & birthYear==51
replace lott=69 if birthMonth==8 & birthDay==20 & birthYear==51
replace lott=50 if birthMonth==8 & birthDay==21 & birthYear==51
replace lott=250 if birthMonth==8 & birthDay==22 & birthYear==51
replace lott=10 if birthMonth==8 & birthDay==23 & birthYear==51
replace lott=274  if  birthMonth==8 & birthDay==24 & birthYear==51
replace lott=364 if  birthMonth==8 & birthDay==25 & birthYear==51
replace lott=91 if  birthMonth==8 & birthDay==26 & birthYear==51
replace lott=232 if birthMonth==8 & birthDay==27 & birthYear==51
replace lott=248 if  birthMonth==8 & birthDay==28 & birthYear==51
replace lott=32  if birthMonth==8 & birthDay==29 & birthYear==51
replace lott=167 if birthMonth==8 & birthDay==30 & birthYear==51
replace lott=275  if birthMonth==8 & birthDay==31 & birthYear==51

*09/1951
replace lott=283  if birthMonth==9 & birthDay==1 & birthYear==51
replace lott=161  if birthMonth==9 & birthDay==2 & birthYear==51
replace lott=183   if birthMonth==9 & birthDay==3 & birthYear==51
replace lott=231  if birthMonth==9 & birthDay==4 & birthYear==51
replace lott=295   if birthMonth==9 & birthDay==5 & birthYear==51
replace lott=21    if birthMonth==9 & birthDay==6 & birthYear==51
replace lott=265    if birthMonth==9 & birthDay==7 & birthYear==51
replace lott=108  if birthMonth==9 & birthDay==8 & birthYear==51
replace lott=313  if birthMonth==9 & birthDay==9 & birthYear==51
replace lott=130   if birthMonth==9 & birthDay==10 & birthYear==51 
replace lott=288  if birthMonth==9 & birthDay==11 & birthYear==51
replace lott=314  if birthMonth==9 & birthDay==12 & birthYear==51
replace lott=238  if birthMonth==9 & birthDay==13 & birthYear==51
replace lott=247    if birthMonth==9 & birthDay==14 & birthYear==51
replace lott=291  if birthMonth==9 & birthDay==15 & birthYear==51
replace lott=139  if birthMonth==9 & birthDay==16 & birthYear==51
replace lott=200  if birthMonth==9 & birthDay==17 & birthYear==51
replace lott=333  if birthMonth==9 & birthDay==18 & birthYear==51
replace lott=228  if  birthMonth==9 & birthDay==19 & birthYear==51
replace lott=261   if birthMonth==9 & birthDay==20 & birthYear==51
replace lott=68  if birthMonth==9 & birthDay==21 & birthYear==51
replace lott=88  if birthMonth==9 & birthDay==22 & birthYear==51
replace lott=206  if birthMonth==9 & birthDay==23 & birthYear==51
replace lott=237  if  birthMonth==9 & birthDay==24 & birthYear==51
replace lott=107  if  birthMonth==9 & birthDay==25 & birthYear==51
replace lott=93   if  birthMonth==9 & birthDay==26 & birthYear==51
replace lott=338  if birthMonth==9 & birthDay==27 & birthYear==51
replace lott=309  if  birthMonth==9 & birthDay==28 & birthYear==51
replace lott=303  if birthMonth==9 & birthDay==29 & birthYear==51
replace lott=18  if birthMonth==9 & birthDay==30 & birthYear==51

*10/1951
replace lott=306  if birthMonth==10 & birthDay==1 & birthYear==51
replace lott=191  if birthMonth==10 & birthDay==2 & birthYear==51
replace lott=134   if birthMonth==10 & birthDay==3 & birthYear==51
replace lott=266  if birthMonth==10 & birthDay==4 & birthYear==51
replace lott=166   if birthMonth==10 & birthDay==5 & birthYear==51
replace lott=78    if birthMonth==10 & birthDay==6 & birthYear==51
replace lott=131    if birthMonth==10 & birthDay==7 & birthYear==51
replace lott=45  if birthMonth==10 & birthDay==8 & birthYear==51
replace lott=302  if birthMonth==10 & birthDay==9 & birthYear==51
replace lott=160   if birthMonth==10 & birthDay==10 & birthYear==51
replace lott=84  if birthMonth==10 & birthDay==11 & birthYear==51
replace lott=70  if birthMonth==10 & birthDay==12 & birthYear==51
replace lott=92  if birthMonth==10 & birthDay==13 & birthYear==51
replace lott=115    if birthMonth==10 & birthDay==14 & birthYear==51
replace lott=310  if birthMonth==10 & birthDay==15 & birthYear==51
replace lott=34  if birthMonth==10 & birthDay==16 & birthYear==51
replace lott=290  if birthMonth==10 & birthDay==17 & birthYear==51
replace lott=340  if birthMonth==10 & birthDay==18 & birthYear==51
replace lott=74  if birthMonth==10 & birthDay==19 & birthYear==51
replace lott=196   if birthMonth==10 & birthDay==20 & birthYear==51
replace lott=5  if birthMonth==10 & birthDay==21 & birthYear==51
replace lott=36  if birthMonth==10 & birthDay==22 & birthYear==51
replace lott=339  if birthMonth==10 & birthDay==23 & birthYear==51
replace lott=149  if birthMonth==10 & birthDay==24 & birthYear==51
replace lott=17  if birthMonth==10 & birthDay==25 & birthYear==51
replace lott=184   if birthMonth==10 & birthDay==26 & birthYear==51
replace lott=318  if birthMonth==10 & birthDay==27 & birthYear==51
replace lott=28  if birthMonth==10 & birthDay==28 & birthYear==51
replace lott=259  if birthMonth==10 & birthDay==29 & birthYear==51
replace lott=332  if birthMonth==10 & birthDay==30 & birthYear==51
replace lott=311  if birthMonth==10 & birthDay==31 & birthYear==51

*11/1951
replace lott=243  if birthMonth==11 & birthDay==1 & birthYear==51
replace lott=205  if birthMonth==11 & birthDay==2 & birthYear==51 
replace lott=294 if birthMonth==11 & birthDay==3 & birthYear==51
replace lott=39 if birthMonth==11 & birthDay==4 & birthYear==51 
replace lott=286 if birthMonth==11 & birthDay==5 & birthYear==51
replace lott=245  if birthMonth==11 & birthDay==6 & birthYear==51 
replace lott=72  if birthMonth==11 & birthDay==7 & birthYear==51
replace lott=119  if birthMonth==11 & birthDay==8 & birthYear==51 
replace lott=176  if birthMonth==11 & birthDay==9 & birthYear==51 
replace lott=63 if birthMonth==11 & birthDay==10 & birthYear==51 
replace lott=123  if birthMonth==11 & birthDay==11 & birthYear==51 
replace lott=255  if birthMonth==11 & birthDay==12 & birthYear==51
replace lott=272 if birthMonth==11 & birthDay==13 & birthYear==51
replace lott=11 if birthMonth==11 & birthDay==14 & birthYear==51
replace lott=362 if birthMonth==11 & birthDay==15 & birthYear==51
replace lott=197 if birthMonth==11 & birthDay==16 & birthYear==51
replace lott=6 if birthMonth==11 & birthDay==17 & birthYear==51
replace lott=280 if birthMonth==11 & birthDay==18 & birthYear==51
replace lott=252 if birthMonth==11 & birthDay==19 & birthYear==51
replace lott=98 if birthMonth==11 & birthDay==20 & birthYear==51
replace lott=35 if birthMonth==11 & birthDay==21 & birthYear==51
replace lott=253   if birthMonth==11 & birthDay==22 & birthYear==51
replace lott=193 if birthMonth==11 & birthDay==23 & birthYear==51
replace lott=81 if birthMonth==11 & birthDay==24 & birthYear==51
replace lott=23 if birthMonth==11 & birthDay==25 & birthYear==51
replace lott=52 if birthMonth==11 & birthDay==26 & birthYear==51
replace lott=168  if birthMonth==11 & birthDay==27 & birthYear==51
replace lott=324 if birthMonth==11 & birthDay==28 & birthYear==51
replace lott=100  if birthMonth==11 & birthDay==29 & birthYear==51
replace lott=67 if birthMonth==11 & birthDay==30 & birthYear==51 
 
*12/1951
replace lott=347 if birthMonth==12 & birthDay==1 & birthYear==51
replace lott=321 if birthMonth==12 & birthDay==2 & birthYear==51
replace lott=110 if birthMonth==12 & birthDay==3 & birthYear==51
replace lott=305 if birthMonth==12 & birthDay==4 & birthYear==51
replace lott=27  if birthMonth==12 & birthDay==5 & birthYear==51
replace lott=198  if birthMonth==12 & birthDay==6 & birthYear==51
replace lott=162  if birthMonth==12 & birthDay==7 & birthYear==51
replace lott=323 if birthMonth==12 & birthDay==8 & birthYear==51
replace lott=114  if birthMonth==12 & birthDay==9 & birthYear==51
replace lott=204  if birthMonth==12 & birthDay==10 & birthYear==51
replace lott=73  if birthMonth==12 & birthDay==11 & birthYear==51
replace lott=19 if birthMonth==12 & birthDay==12 & birthYear==51
replace lott=151 if birthMonth==12 & birthDay==13 & birthYear==51
replace lott=348  if birthMonth==12 & birthDay==14 & birthYear==51
replace lott=87 if birthMonth==12 & birthDay==15 & birthYear==51
replace lott=41  if birthMonth==12 & birthDay==16 & birthYear==51
replace lott=315 if birthMonth==12 & birthDay==17 & birthYear==51
replace lott=208 if birthMonth==12 & birthDay==18 & birthYear==51
replace lott=249 if birthMonth==12 & birthDay==19 & birthYear==51
replace lott=218 if birthMonth==12 & birthDay==20 & birthYear==51
replace lott=181  if birthMonth==12 & birthDay==21 & birthYear==51
replace lott=194  if birthMonth==12 & birthDay==22 & birthYear==51
replace lott=219 if birthMonth==12 & birthDay==23 & birthYear==51
replace lott=2  if birthMonth==12 & birthDay==24 & birthYear==51
replace lott=361  if birthMonth==12 & birthDay==25 & birthYear==51
replace lott=80 if birthMonth==12 & birthDay==26 & birthYear==51
replace lott=239  if birthMonth==12 & birthDay==27 & birthYear==51
replace lott=128 if birthMonth==12 & birthDay==28 & birthYear==51
replace lott=145  if birthMonth==12 & birthDay==29 & birthYear==51
replace lott=192   if birthMonth==12 & birthDay==30 & birthYear==51
replace lott=126   if birthMonth==12 & birthDay==31 & birthYear==51

*1/1952
replace lott=207 if birthMonth==1 & birthDay==1 & birthYear==52
replace lott=225 if birthMonth==1 & birthDay==2 & birthYear==52
replace lott=246 if birthMonth==1 & birthDay==3 & birthYear==52
replace lott=264  if birthMonth==1 & birthDay==4 & birthYear==52
replace lott=265  if birthMonth==1 & birthDay==5 & birthYear==52
replace lott=242 if birthMonth==1 & birthDay==6 & birthYear==52
replace lott=292 if birthMonth==1 & birthDay==7 & birthYear==52
replace lott=287 if birthMonth==1 & birthDay==8 & birthYear==52
replace lott=338  if birthMonth==1 & birthDay==9 & birthYear==52
replace lott=231 if birthMonth==1 & birthDay==10 & birthYear==52
replace lott=90 if birthMonth==1 & birthDay==11 & birthYear==52
replace lott=228 if birthMonth==1 & birthDay==12 & birthYear==52
replace lott=183 if birthMonth==1 & birthDay==13 & birthYear==52
replace lott=285  if birthMonth==1 & birthDay==14 & birthYear==52
replace lott=325  if birthMonth==1 & birthDay==15 & birthYear==52
replace lott=74 if birthMonth==1 & birthDay==16 & birthYear==52
replace lott=9  if birthMonth==1 & birthDay==17 & birthYear==52
replace lott=51 if birthMonth==1 & birthDay==18 & birthYear==52
replace lott=195 if birthMonth==1 & birthDay==19 & birthYear==52
replace lott=310 if birthMonth==1 & birthDay==20 & birthYear==52
replace lott=206 if birthMonth==1 & birthDay==21 & birthYear==52
replace lott=108 if birthMonth==1 & birthDay==22 & birthYear==52
replace lott=349  if birthMonth==1 & birthDay==23 & birthYear==52
replace lott=337 if birthMonth==1 & birthDay==24 & birthYear==52
replace lott=2  if birthMonth==1 & birthDay==25 & birthYear==52
replace lott=114 if birthMonth==1 & birthDay==26 & birthYear==52
replace lott=72 if birthMonth==1 & birthDay==27 & birthYear==52
replace lott=357 if birthMonth==1 & birthDay==28 & birthYear==52
replace lott=266 if birthMonth==1 & birthDay==29 & birthYear==52
replace lott=268 if birthMonth==1 & birthDay==30 & birthYear==52
replace lott=239  if birthMonth==1 & birthDay==31 & birthYear==52

*02/1952
replace lott=306  if birthMonth==2 & birthDay==1 & birthYear==52
replace lott=28 if birthMonth==2 & birthDay==2 & birthYear==52
replace lott=250 if birthMonth==2 & birthDay==3 & birthYear==52 
replace lott=92 if birthMonth==2 & birthDay==4 & birthYear==52
replace lott=233 if birthMonth==2 & birthDay==5 & birthYear==52
replace lott=148 if birthMonth==2 & birthDay==6 & birthYear==52
replace lott=304  if birthMonth==2 & birthDay==7 & birthYear==52
replace lott=208 if birthMonth==2 & birthDay==8 & birthYear==52
replace lott=130 if birthMonth==2 & birthDay==9 & birthYear==52
replace lott=276 if birthMonth==2 & birthDay==10 & birthYear==52
replace lott=351 if birthMonth==2 & birthDay==11 & birthYear==52
replace lott=340  if birthMonth==2 & birthDay==12 & birthYear==52
replace lott=118 if birthMonth==2 & birthDay==13 & birthYear==52
replace lott=64   if birthMonth==2 & birthDay==14 & birthYear==52
replace lott=214  if birthMonth==2 & birthDay==15 & birthYear==52
replace lott=353 if birthMonth==2 & birthDay==16 & birthYear==52
replace lott=198 if birthMonth==2 & birthDay==17 & birthYear==52
replace lott=189 if birthMonth==2 & birthDay==18 & birthYear==52
replace lott=210  if birthMonth==2 & birthDay==19 & birthYear==52
replace lott=86 if birthMonth==2 & birthDay==20 & birthYear==52
replace lott=15 if birthMonth==2 & birthDay==21 & birthYear==52
replace lott=13 if birthMonth==2 & birthDay==22 & birthYear==52
replace lott=116  if birthMonth==2 & birthDay==23 & birthYear==52
replace lott=359 if birthMonth==2 & birthDay==24 & birthYear==52
replace lott=335 if birthMonth==2 & birthDay==25 & birthYear==52
replace lott=136 if birthMonth==2 & birthDay==26 & birthYear==52
replace lott=217 if birthMonth==2 & birthDay==27 & birthYear==52
replace lott=83 if birthMonth==2 & birthDay==28 & birthYear==52
replace lott=305 if birthMonth==2 & birthDay==29 & birthYear==52

*03/1952
replace lott=364 if birthMonth==3 & birthDay==1 & birthYear==52
replace lott=184  if birthMonth==3 & birthDay==2 & birthYear==52
replace lott=170 if birthMonth==3 & birthDay==3 & birthYear==52
replace lott=283 if birthMonth==3 & birthDay==4 & birthYear==52
replace lott=172 if birthMonth==3 & birthDay==5 & birthYear==52
replace lott=327 if birthMonth==3 & birthDay==6 & birthYear==52
replace lott=149 if birthMonth==3 & birthDay==7 & birthYear==52
replace lott=229 if birthMonth==3 & birthDay==8 & birthYear==52
replace lott=77 if birthMonth==3 & birthDay==9 & birthYear==52
replace lott=360 if birthMonth==3 & birthDay==10 & birthYear==52 
replace lott=332 if birthMonth==3 & birthDay==11 & birthYear==52
replace lott=258 if birthMonth==3 & birthDay==12 & birthYear==52 
replace lott=173 if birthMonth==3 & birthDay==13 & birthYear==52
replace lott=203 if birthMonth==3 & birthDay==14 & birthYear==52
replace lott=319 if birthMonth==3 & birthDay==15 & birthYear==52
replace lott=347 if birthMonth==3 & birthDay==16 & birthYear==52
replace lott=117  if birthMonth==3 & birthDay==17 & birthYear==52
replace lott=168 if birthMonth==3 & birthDay==18 & birthYear==52
replace lott=53 if  birthMonth==3 & birthDay==19 & birthYear==52
replace lott=200 if birthMonth==3 & birthDay==20 & birthYear==52 
replace lott=280 if birthMonth==3 & birthDay==21 & birthYear==52
replace lott=345 if birthMonth==3 & birthDay==22 & birthYear==52
replace lott=89 if birthMonth==3 & birthDay==23 & birthYear==52
replace lott=133 if  birthMonth==3 & birthDay==24 & birthYear==52
replace lott=219 if  birthMonth==3 & birthDay==25 & birthYear==52
replace lott=122 if  birthMonth==3 & birthDay==26 & birthYear==52
replace lott=232 if birthMonth==3 & birthDay==27 & birthYear==52
replace lott=215 if  birthMonth==3 & birthDay==28 & birthYear==52
replace lott=343 if birthMonth==3 & birthDay==29 & birthYear==52
replace lott=191 if birthMonth==3 & birthDay==30 & birthYear==52
replace lott=161  if birthMonth==3 & birthDay==31 & birthYear==52

*04/1952
replace lott=96 if birthMonth==4 & birthDay==1 & birthYear==52
replace lott=129  if birthMonth==4 & birthDay==2 & birthYear==52
replace lott=262 if birthMonth==4 & birthDay==3 & birthYear==52
replace lott=158 if birthMonth==4 & birthDay==4 & birthYear==52
replace lott=294 if birthMonth==4 & birthDay==5 & birthYear==52
replace lott=297 if birthMonth==4 & birthDay==6 & birthYear==52
replace lott=58 if birthMonth==4 & birthDay==7 & birthYear==52
replace lott=35 if birthMonth==4 & birthDay==8 & birthYear==52
replace lott=289 if birthMonth==4 & birthDay==9 & birthYear==52
replace lott=194 if birthMonth==4 & birthDay==10 & birthYear==52
replace lott=324 if birthMonth==4 & birthDay==11 & birthYear==52
replace lott=165 if birthMonth==4 & birthDay==12 & birthYear==52
replace lott=271 if birthMonth==4 & birthDay==13 & birthYear==52
replace lott=248 if birthMonth==4 & birthDay==14 & birthYear==52
replace lott=222 if birthMonth==4 & birthDay==15 & birthYear==52
replace lott=23 if birthMonth==4 & birthDay==16 & birthYear==52
replace lott=251  if birthMonth==4 & birthDay==17 & birthYear==52
replace lott=139 if birthMonth==4 & birthDay==18 & birthYear==52
replace lott=49 if  birthMonth==4 & birthDay==19 & birthYear==52
replace lott=39 if birthMonth==4 & birthDay==20 & birthYear==52
replace lott=342 if birthMonth==4 & birthDay==21 & birthYear==52
replace lott=126 if birthMonth==4 & birthDay==22 & birthYear==52
replace lott=179 if birthMonth==4 & birthDay==23 & birthYear==52
replace lott=21 if  birthMonth==4 & birthDay==24 & birthYear==52
replace lott=238 if  birthMonth==4 & birthDay==25 & birthYear==52
replace lott=45 if  birthMonth==4 & birthDay==26 & birthYear==52
replace lott=124 if birthMonth==4 & birthDay==27 & birthYear==52
replace lott=281 if  birthMonth==4 & birthDay==28 & birthYear==52
replace lott=109 if birthMonth==4 & birthDay==29 & birthYear==52
replace lott=29 if birthMonth==4 & birthDay==30 & birthYear==52
	
*05/1952
replace lott=154 if birthMonth==5 & birthDay==1 & birthYear==52
replace lott=261 if birthMonth==5 & birthDay==2 & birthYear==52
replace lott=177  if birthMonth==5 & birthDay==3 & birthYear==52
replace lott=137 if birthMonth==5 & birthDay==4 & birthYear==52
replace lott=41 if birthMonth==5 & birthDay==5 & birthYear==52
replace lott=50 if birthMonth==5 & birthDay==6 & birthYear==52
replace lott=106  if birthMonth==5 & birthDay==7 & birthYear==52
replace lott=216 if birthMonth==5 & birthDay==8 & birthYear==52
replace lott=311 if birthMonth==5 & birthDay==9 & birthYear==52
replace lott=220  if birthMonth==5 & birthDay==10 & birthYear==52
replace lott=107  if birthMonth==5 & birthDay==11 & birthYear==52
replace lott=52 if birthMonth==5 & birthDay==12 & birthYear==52
replace lott=105 if birthMonth==5 & birthDay==13 & birthYear==52
replace lott=267 if birthMonth==5 & birthDay==14 & birthYear==52
replace lott=162 if birthMonth==5 & birthDay==15 & birthYear==52
replace lott=205  if birthMonth==5 & birthDay==16 & birthYear==52
replace lott=270 if birthMonth==5 & birthDay==17 & birthYear==52
replace lott=85 if birthMonth==5 & birthDay==18 & birthYear==52
replace lott=55  if  birthMonth==5 & birthDay==19 & birthYear==52
replace lott=119 if birthMonth==5 & birthDay==20 & birthYear==52
replace lott=12 if birthMonth==5 & birthDay==21 & birthYear==52
replace lott=164 if birthMonth==5 & birthDay==22 & birthYear==52
replace lott=197 if birthMonth==5 & birthDay==23 & birthYear==52
replace lott=60  if  birthMonth==5 & birthDay==24 & birthYear==52
replace lott=24 if  birthMonth==5 & birthDay==25 & birthYear==52
replace lott=26 if  birthMonth==5 & birthDay==26 & birthYear==52
replace lott=241 if birthMonth==5 & birthDay==27 & birthYear==52
replace lott=91 if  birthMonth==5 & birthDay==28 & birthYear==52
replace lott=81 if birthMonth==5 & birthDay==29 & birthYear==52
replace lott=301 if birthMonth==5 & birthDay==30 & birthYear==52
replace lott=18 if birthMonth==5 & birthDay==31 & birthYear==52

*06/1952
replace lott=274 if birthMonth==6 & birthDay==1 & birthYear==52
replace lott=363 if birthMonth==6 & birthDay==2 & birthYear==52
replace lott=54 if birthMonth==6 & birthDay==3 & birthYear==52
replace lott=187  if birthMonth==6 & birthDay==4 & birthYear==52
replace lott=78  if birthMonth==6 & birthDay==5 & birthYear==52
replace lott=218 if birthMonth==6 & birthDay==6 & birthYear==52
replace lott=288  if birthMonth==6 & birthDay==7 & birthYear==52
replace lott=84 if birthMonth==6 & birthDay==8 & birthYear==52
replace lott=140 if birthMonth==6 & birthDay==9 & birthYear==52
replace lott=226 if birthMonth==6 & birthDay==10 & birthYear==52
replace lott=202 if birthMonth==6 & birthDay==11 & birthYear==52
replace lott=273 if birthMonth==6 & birthDay==12 & birthYear==52
replace lott=47  if birthMonth==6 & birthDay==13 & birthYear==52
replace lott=113 if birthMonth==6 & birthDay==14 & birthYear==52
replace lott=8 if birthMonth==6 & birthDay==15 & birthYear==52
replace lott=68 if birthMonth==6 & birthDay==16 & birthYear==52
replace lott=193  if birthMonth==6 & birthDay==17 & birthYear==52
replace lott=102 if birthMonth==6 & birthDay==18 & birthYear==52
replace lott=44 if  birthMonth==6 & birthDay==19 & birthYear==52
replace lott=30 if birthMonth==6 & birthDay==20 & birthYear==52
replace lott=296  if birthMonth==6 & birthDay==21 & birthYear==52
replace lott=59 if birthMonth==6 & birthDay==22 & birthYear==52
replace lott=336 if birthMonth==6 & birthDay==23 & birthYear==52
replace lott=328 if  birthMonth==6 & birthDay==24 & birthYear==52
replace lott=213 if  birthMonth==6 & birthDay==25 & birthYear==52
replace lott=346  if  birthMonth==6 & birthDay==26 & birthYear==52
replace lott=7  if birthMonth==6 & birthDay==27 & birthYear==52
replace lott=57 if  birthMonth==6 & birthDay==28 & birthYear==52
replace lott=196 if birthMonth==6 & birthDay==29 & birthYear==52
replace lott=123 if birthMonth==6 & birthDay==30 & birthYear==52

*07/1952
replace lott=284  if birthMonth==7 & birthDay==1 & birthYear==52
replace lott=61 if birthMonth==7 & birthDay==2 & birthYear==52
replace lott=103 if birthMonth==7 & birthDay==3 & birthYear==52
replace lott=142 if birthMonth==7 & birthDay==4 & birthYear==52
replace lott=286 if birthMonth==7 & birthDay==5 & birthYear==52
replace lott=185 if birthMonth==7 & birthDay==6 & birthYear==52
replace lott=354  if birthMonth==7 & birthDay==7 & birthYear==52
replace lott=320  if birthMonth==7 & birthDay==8 & birthYear==52
replace lott=22 if birthMonth==7 & birthDay==9 & birthYear==52
replace lott=234 if birthMonth==7 & birthDay==10 & birthYear==52
replace lott=223 if birthMonth==7 & birthDay==11 & birthYear==52
replace lott=169  if birthMonth==7 & birthDay==12 & birthYear==52
replace lott=278  if birthMonth==7 & birthDay==13 & birthYear==52
replace lott=307 if birthMonth==7 & birthDay==14 & birthYear==52
replace lott=88 if birthMonth==7 & birthDay==15 & birthYear==52
replace lott=291 if birthMonth==7 & birthDay==16 & birthYear==52
replace lott=182  if birthMonth==7 & birthDay==17 & birthYear==52
replace lott=131 if birthMonth==7 & birthDay==18 & birthYear==52
replace lott=100 if  birthMonth==7 & birthDay==19 & birthYear==52
replace lott=95 if birthMonth==7 & birthDay==20 & birthYear==52
replace lott=67  if birthMonth==7 & birthDay==21 & birthYear==52
replace lott=132 if birthMonth==7 & birthDay==22 & birthYear==52
replace lott=151 if birthMonth==7 & birthDay==23 & birthYear==52
replace lott=4  if  birthMonth==7 & birthDay==24 & birthYear==52
replace lott=121  if  birthMonth==7 & birthDay==25 & birthYear==52
replace lott=350 if  birthMonth==7 & birthDay==26 & birthYear==52
replace lott=235 if birthMonth==7 & birthDay==27 & birthYear==52
replace lott=127  if  birthMonth==7 & birthDay==28  & birthYear==52
replace lott=146 if birthMonth==7 & birthDay==29 & birthYear==52
replace lott=112 if birthMonth==7 & birthDay==30 & birthYear==52
replace lott=315 if birthMonth==7 & birthDay==31 & birthYear==52

*08/1952
replace lott=180  if birthMonth==8 & birthDay==1 & birthYear==52
replace lott=326  if birthMonth==8 & birthDay==2 & birthYear==52
replace lott=176 if birthMonth==8 & birthDay==3 & birthYear==52
replace lott=272 if birthMonth==8 & birthDay==4 & birthYear==52
replace lott=63  if birthMonth==8 & birthDay==5 & birthYear==52
replace lott=155 if birthMonth==8 & birthDay==6 & birthYear==52
replace lott=355 if birthMonth==8 & birthDay==7 & birthYear==52
replace lott=157  if birthMonth==8 & birthDay==8 & birthYear==52
replace lott=153 if birthMonth==8 & birthDay==9 & birthYear==52
replace lott=25  if birthMonth==8 & birthDay==10 & birthYear==52
replace lott=34 if birthMonth==8 & birthDay==11 & birthYear==52
replace lott=269 if birthMonth==8 & birthDay==12 & birthYear==52
replace lott=365 if birthMonth==8 & birthDay==13 & birthYear==52
replace lott=309 if birthMonth==8 & birthDay==14 & birthYear==52
replace lott=20 if birthMonth==8 & birthDay==15 & birthYear==52
replace lott=358  if birthMonth==8 & birthDay==16 & birthYear==52
replace lott=295 if birthMonth==8 & birthDay==17 & birthYear==52
replace lott=11 if birthMonth==8 & birthDay==18 & birthYear==52
replace lott=150 if  birthMonth==8 & birthDay==19 & birthYear==52
replace lott=115 if birthMonth==8 & birthDay==20 & birthYear==52
replace lott=33 if birthMonth==8 & birthDay==21 & birthYear==52
replace lott=82 if birthMonth==8 & birthDay==22 & birthYear==52
replace lott=143 if birthMonth==8 & birthDay==23 & birthYear==52
replace lott=256  if  birthMonth==8 & birthDay==24 & birthYear==52
replace lott=192 if  birthMonth==8 & birthDay==25 & birthYear==52
replace lott=348 if  birthMonth==8 & birthDay==26 & birthYear==52
replace lott=352 if birthMonth==8 & birthDay==27 & birthYear==52
replace lott=37 if  birthMonth==8 & birthDay==28 & birthYear==52
replace lott=279  if birthMonth==8 & birthDay==29 & birthYear==52
replace lott=334 if birthMonth==8 & birthDay==30 & birthYear==52
replace lott=111  if birthMonth==8 & birthDay==31 & birthYear==52

*09/1952
replace lott=302  if birthMonth==9 & birthDay==1 & birthYear==52
replace lott=70  if birthMonth==9 & birthDay==2 & birthYear==52
replace lott=321   if birthMonth==9 & birthDay==3 & birthYear==52
replace lott=32  if birthMonth==9 & birthDay==4 & birthYear==52
replace lott=147   if birthMonth==9 & birthDay==5 & birthYear==52
replace lott=110    if birthMonth==9 & birthDay==6 & birthYear==52
replace lott=42    if birthMonth==9 & birthDay==7 & birthYear==52
replace lott=43  if birthMonth==9 & birthDay==8 & birthYear==52
replace lott=199  if birthMonth==9 & birthDay==9 & birthYear==52
replace lott=46   if birthMonth==9 & birthDay==10 & birthYear==52
replace lott=329  if birthMonth==9 & birthDay==11 & birthYear==52
replace lott=308  if birthMonth==9 & birthDay==12 & birthYear==52
replace lott=94  if birthMonth==9 & birthDay==13 & birthYear==52
replace lott=253    if birthMonth==9 & birthDay==14 & birthYear==52
replace lott=303  if birthMonth==9 & birthDay==15 & birthYear==52
replace lott=243  if birthMonth==9 & birthDay==16 & birthYear==52
replace lott=178  if birthMonth==9 & birthDay==17 & birthYear==52
replace lott=104  if birthMonth==9 & birthDay==18 & birthYear==52
replace lott=255  if  birthMonth==9 & birthDay==19 & birthYear==52
replace lott=313   if birthMonth==9 & birthDay==20 & birthYear==52
replace lott=16  if birthMonth==9 & birthDay==21 & birthYear==52
replace lott=145  if birthMonth==9 & birthDay==22 & birthYear==52
replace lott=323  if birthMonth==9 & birthDay==23 & birthYear==52
replace lott=277  if  birthMonth==9 & birthDay==24 & birthYear==52
replace lott=224  if  birthMonth==9 & birthDay==25 & birthYear==52
replace lott=344   if  birthMonth==9 & birthDay==26 & birthYear==52
replace lott=314  if birthMonth==9 & birthDay==27 & birthYear==52
replace lott=5  if  birthMonth==9 & birthDay==28 & birthYear==52
replace lott=48  if birthMonth==9 & birthDay==29 & birthYear==52
replace lott=299  if birthMonth==9 & birthDay==30 & birthYear==52

*10/1952
replace lott=71  if birthMonth==10 & birthDay==1 & birthYear==52
replace lott=76  if birthMonth==10 & birthDay==2 & birthYear==52
replace lott=144   if birthMonth==10 & birthDay==3 & birthYear==52
replace lott=66  if birthMonth==10 & birthDay==4 & birthYear==52
replace lott=339   if birthMonth==10 & birthDay==5 & birthYear==52
replace lott=6    if birthMonth==10 & birthDay==6 & birthYear==52 
replace lott=80    if birthMonth==10 & birthDay==7 & birthYear==52
replace lott=317  if birthMonth==10 & birthDay==8 & birthYear==52
replace lott=254  if birthMonth==10 & birthDay==9 & birthYear==52
replace lott=312   if birthMonth==10 & birthDay==10 & birthYear==52
replace lott=201  if birthMonth==10 & birthDay==11 & birthYear==52
replace lott=257  if birthMonth==10 & birthDay==12 & birthYear==52
replace lott=236  if birthMonth==10 & birthDay==13 & birthYear==52
replace lott=36    if birthMonth==10 & birthDay==14 & birthYear==52
replace lott=75  if birthMonth==10 & birthDay==15 & birthYear==52
replace lott=159  if birthMonth==10 & birthDay==16 & birthYear==52
replace lott=188  if birthMonth==10 & birthDay==17 & birthYear==52
replace lott=134  if birthMonth==10 & birthDay==18 & birthYear==52
replace lott=163  if birthMonth==10 & birthDay==19 & birthYear==52
replace lott=331   if birthMonth==10 & birthDay==20 & birthYear==52
replace lott=282  if birthMonth==10 & birthDay==21 & birthYear==52
replace lott=263  if birthMonth==10 & birthDay==22 & birthYear==52
replace lott=152  if birthMonth==10 & birthDay==23 & birthYear==52
replace lott=212  if birthMonth==10 & birthDay==24 & birthYear==52 
replace lott=138  if birthMonth==10 & birthDay==25 & birthYear==52
replace lott=69   if birthMonth==10 & birthDay==26 & birthYear==52 
replace lott=98  if birthMonth==10 & birthDay==27 & birthYear==52
replace lott=10  if birthMonth==10 & birthDay==28 & birthYear==52
replace lott=79  if birthMonth==10 & birthDay==29 & birthYear==52
replace lott=87  if birthMonth==10 & birthDay==30 & birthYear==52
replace lott=160  if birthMonth==10 & birthDay==31 & birthYear==52

*11/1952
replace lott=366  if birthMonth==11 & birthDay==1 & birthYear==52
replace lott=190  if birthMonth==11 & birthDay==2 & birthYear==52
replace lott=300 if birthMonth==11 & birthDay==3 & birthYear==52
replace lott=166 if birthMonth==11 & birthDay==4 & birthYear==52
replace lott=211 if birthMonth==11 & birthDay==5 & birthYear==52
replace lott=186  if birthMonth==11 & birthDay==6 & birthYear==52 
replace lott=17  if birthMonth==11 & birthDay==7 & birthYear==52
replace lott=260  if birthMonth==11 & birthDay==8 & birthYear==52
replace lott=237  if birthMonth==11 & birthDay==9 & birthYear==52
replace lott=227 if birthMonth==11 & birthDay==10 & birthYear==52
replace lott=244  if birthMonth==11 & birthDay==11 & birthYear==52
replace lott=259  if birthMonth==11 & birthDay==12 & birthYear==52
replace lott=247 if birthMonth==11 & birthDay==13 & birthYear==52
replace lott=316 if birthMonth==11 & birthDay==14 & birthYear==52
replace lott=318 if birthMonth==11 & birthDay==15 & birthYear==52
replace lott=120 if birthMonth==11 & birthDay==16 & birthYear==52
replace lott=298 if birthMonth==11 & birthDay==17 & birthYear==52
replace lott=175 if birthMonth==11 & birthDay==18 & birthYear==52
replace lott=333 if birthMonth==11 & birthDay==19 & birthYear==52
replace lott=125 if birthMonth==11 & birthDay==20 & birthYear==52
replace lott=330 if birthMonth==11 & birthDay==21 & birthYear==52
replace lott=93   if birthMonth==11 & birthDay==22 & birthYear==52
replace lott=181 if birthMonth==11 & birthDay==23 & birthYear==52
replace lott=62 if birthMonth==11 & birthDay==24 & birthYear==52
replace lott=97 if birthMonth==11 & birthDay==25 & birthYear==52
replace lott=209 if birthMonth==11 & birthDay==26 & birthYear==52
replace lott=240  if birthMonth==11 & birthDay==27 & birthYear==52
replace lott=31 if birthMonth==11 & birthDay==28 & birthYear==52 
replace lott=230  if birthMonth==11 & birthDay==29 & birthYear==52
replace lott=14 if birthMonth==11 & birthDay==30 & birthYear==52

*12/1952
replace lott=38 if birthMonth==12 & birthDay==1 & birthYear==52
replace lott=99 if birthMonth==12 & birthDay==2 & birthYear==52
replace lott=40 if birthMonth==12 & birthDay==3 & birthYear==52
replace lott=1 if birthMonth==12 & birthDay==4 & birthYear==52
replace lott=252  if birthMonth==12 & birthDay==5 & birthYear==52
replace lott=356  if birthMonth==12 & birthDay==6 & birthYear==52
replace lott=141  if birthMonth==12 & birthDay==7 & birthYear==52
replace lott=65 if birthMonth==12 & birthDay==8 & birthYear==52
replace lott=27  if birthMonth==12 & birthDay==9 & birthYear==52
replace lott=362  if birthMonth==12 & birthDay==10 & birthYear==52
replace lott=56  if birthMonth==12 & birthDay==11 & birthYear==52
replace lott=249 if birthMonth==12 & birthDay==12 & birthYear==52
replace lott=204 if birthMonth==12 & birthDay==13 & birthYear==52
replace lott=275  if birthMonth==12 & birthDay==14 & birthYear==52
replace lott=3 if birthMonth==12 & birthDay==15 & birthYear==52
replace lott=128  if birthMonth==12 & birthDay==16 & birthYear==52
replace lott=293 if birthMonth==12 & birthDay==17 & birthYear==52
replace lott=73 if birthMonth==12 & birthDay==18 & birthYear==52
replace lott=19 if birthMonth==12 & birthDay==19 & birthYear==52
replace lott=221 if birthMonth==12 & birthDay==20 & birthYear==52
replace lott=341  if birthMonth==12 & birthDay==21 & birthYear==52
replace lott=156  if birthMonth==12 & birthDay==22 & birthYear==52
replace lott=171 if birthMonth==12 & birthDay==23 & birthYear==52
replace lott=245  if birthMonth==12 & birthDay==24 & birthYear==52
replace lott=135  if birthMonth==12 & birthDay==25 & birthYear==52
replace lott=361 if birthMonth==12 & birthDay==26 & birthYear==52
replace lott=290  if birthMonth==12 & birthDay==27 & birthYear==52
replace lott=174 if birthMonth==12 & birthDay==28 & birthYear==52
replace lott=101  if birthMonth==12 & birthDay==29 & birthYear==52
replace lott=167   if birthMonth==12 & birthDay==30 & birthYear==52
replace lott=322   if birthMonth==12 & birthDay==31 & birthYear==52



*1/1953
replace lott=150 if birthMonth==1 & birthDay==1 & birthYear==53
replace lott=328 if birthMonth==1 & birthDay==2 & birthYear==53
replace lott=42 if birthMonth==1 & birthDay==3 & birthYear==53
replace lott=28 if birthMonth==1 & birthDay==4 & birthYear==53
replace lott=338 if birthMonth==1 & birthDay==5 & birthYear==53
replace lott=36 if birthMonth==1 & birthDay==6 & birthYear==53
replace lott=111 if birthMonth==1 & birthDay==7 & birthYear==53
replace lott=206 if birthMonth==1 & birthDay==8 & birthYear==53
replace lott=197  if birthMonth==1 & birthDay==9 & birthYear==53
replace lott=37 if birthMonth==1 & birthDay==10 & birthYear==53
replace lott=174 if birthMonth==1 & birthDay==11 & birthYear==53
replace lott=126 if birthMonth==1 & birthDay==12 & birthYear==53
replace lott=298 if birthMonth==1 & birthDay==13 & birthYear==53
replace lott=341 if birthMonth==1 & birthDay==14 & birthYear==53
replace lott=221 if birthMonth==1 & birthDay==15 & birthYear==53
replace lott=309 if birthMonth==1 & birthDay==16 & birthYear==53
replace lott=231 if birthMonth==1 & birthDay==17 & birthYear==53
replace lott=72 if birthMonth==1 & birthDay==18 & birthYear==53
replace lott=303 if birthMonth==1 & birthDay==19 & birthYear==53
replace lott=161 if birthMonth==1 & birthDay==20 & birthYear==53
replace lott=99 if birthMonth==1 & birthDay==21 & birthYear==53
replace lott=259 if birthMonth==1 & birthDay==22 & birthYear==53
replace lott=258 if birthMonth==1 & birthDay==23 & birthYear==53
replace lott=62 if birthMonth==1 & birthDay==24 & birthYear==53
replace lott=243 if birthMonth==1 & birthDay==25 & birthYear==53
replace lott=311 if birthMonth==1 & birthDay==26 & birthYear==53
replace lott=110 if birthMonth==1 & birthDay==27 & birthYear==53
replace lott=304 if birthMonth==1 & birthDay==28 & birthYear==53
replace lott=283 if birthMonth==1 & birthDay==29 & birthYear==53
replace lott=114 if birthMonth==1 & birthDay==30 & birthYear==53
replace lott=240 if birthMonth==1 & birthDay==31 & birthYear==53

*02/1953
replace lott=112 if birthMonth==2 & birthDay==1 & birthYear==53
replace lott=278 if birthMonth==2 & birthDay==2 & birthYear==53
replace lott=54 if birthMonth==2 & birthDay==3 & birthYear==53 
replace lott=168 if birthMonth==2 & birthDay==4 & birthYear==53
replace lott=96 if birthMonth==2 & birthDay==5 & birthYear==53
replace lott=271 if birthMonth==2 & birthDay==6 & birthYear==53
replace lott=154 if birthMonth==2 & birthDay==7 & birthYear==53
replace lott=347 if birthMonth==2 & birthDay==8 & birthYear==53
replace lott=136 if birthMonth==2 & birthDay==9 & birthYear==53
replace lott=361 if birthMonth==2 & birthDay==10 & birthYear==53
replace lott=26 if birthMonth==2 & birthDay==11 & birthYear==53
replace lott=195 if birthMonth==2 & birthDay==12 & birthYear==53
replace lott=263 if birthMonth==2 & birthDay==13 & birthYear==53
replace lott=348 if birthMonth==2 & birthDay==14 & birthYear==53
replace lott=308 if birthMonth==2 & birthDay==15 & birthYear==53
replace lott=227 if birthMonth==2 & birthDay==16 & birthYear==53
replace lott=46 if birthMonth==2 & birthDay==17 & birthYear==53
replace lott=11 if birthMonth==2 & birthDay==18 & birthYear==53
replace lott=127 if birthMonth==2 & birthDay==19 & birthYear==53
replace lott=106 if birthMonth==2 & birthDay==20 & birthYear==53
replace lott=316 if birthMonth==2 & birthDay==21 & birthYear==53
replace lott=20 if birthMonth==2 & birthDay==22 & birthYear==53
replace lott=247 if birthMonth==2 & birthDay==23 & birthYear==53
replace lott=261 if birthMonth==2 & birthDay==24 & birthYear==53
replace lott=260 if birthMonth==2 & birthDay==25 & birthYear==53
replace lott=51 if birthMonth==2 & birthDay==26 & birthYear==53
replace lott=186 if birthMonth==2 & birthDay==27 & birthYear==53
replace lott=295 if birthMonth==2 & birthDay==28 & birthYear==53

*03/1953
replace lott=203 if birthMonth==3 & birthDay==1 & birthYear==53
replace lott=322 if birthMonth==3 & birthDay==2 & birthYear==53
replace lott=220 if birthMonth==3 & birthDay==3 & birthYear==53
replace lott=47 if birthMonth==3 & birthDay==4 & birthYear==53
replace lott=266 if birthMonth==3 & birthDay==5 & birthYear==53
replace lott=1 if birthMonth==3 & birthDay==6 & birthYear==53
replace lott=2 if birthMonth==3 & birthDay==7 & birthYear==53
replace lott=153 if birthMonth==3 & birthDay==8 & birthYear==53
replace lott=321 if birthMonth==3 & birthDay==9 & birthYear==53
replace lott=331 if birthMonth==3 & birthDay==10 & birthYear==53 
replace lott=239 if birthMonth==3 & birthDay==11 & birthYear==53
replace lott=44 if birthMonth==3 & birthDay==12 & birthYear==53 
replace lott=244 if birthMonth==3 & birthDay==13 & birthYear==53
replace lott=117 if birthMonth==3 & birthDay==14 & birthYear==53
replace lott=152 if birthMonth==3 & birthDay==15 & birthYear==53
replace lott=94 if birthMonth==3 & birthDay==16 & birthYear==53
replace lott=363 if birthMonth==3 & birthDay==17 & birthYear==53
replace lott=357 if birthMonth==3 & birthDay==18 & birthYear==53
replace lott=358 if  birthMonth==3 & birthDay==19 & birthYear==53
replace lott=262 if birthMonth==3 & birthDay==20 & birthYear==53 
replace lott=300 if birthMonth==3 & birthDay==21 & birthYear==53
replace lott=317 if birthMonth==3 & birthDay==22 & birthYear==53
replace lott=22 if birthMonth==3 & birthDay==23 & birthYear==53
replace lott=71 if  birthMonth==3 & birthDay==24 & birthYear==53
replace lott=65 if  birthMonth==3 & birthDay==25 & birthYear==53
replace lott=24 if  birthMonth==3 & birthDay==26 & birthYear==53
replace lott=181 if birthMonth==3 & birthDay==27 & birthYear==53
replace lott=45 if  birthMonth==3 & birthDay==28 & birthYear==53
replace lott=21 if birthMonth==3 & birthDay==29 & birthYear==53
replace lott=213 if birthMonth==3 & birthDay==30 & birthYear==53
replace lott=326 if birthMonth==3 & birthDay==31 & birthYear==53

*04/1953
replace lott=12 if birthMonth==4 & birthDay==1 & birthYear==53
replace lott=108 if birthMonth==4 & birthDay==2 & birthYear==53
replace lott=104 if birthMonth==4 & birthDay==3 & birthYear==53
replace lott=280 if birthMonth==4 & birthDay==4 & birthYear==53
replace lott=254 if birthMonth==4 & birthDay==5 & birthYear==53
replace lott=88 if birthMonth==4 & birthDay==6 & birthYear==53
replace lott=163 if birthMonth==4 & birthDay==7 & birthYear==53
replace lott=50 if birthMonth==4 & birthDay==8 & birthYear==53
replace lott=234 if birthMonth==4 & birthDay==9 & birthYear==53
replace lott=272 if birthMonth==4 & birthDay==10 & birthYear==53
replace lott=350 if birthMonth==4 & birthDay==11 & birthYear==53
replace lott=23 if birthMonth==4 & birthDay==12 & birthYear==53
replace lott=169 if birthMonth==4 & birthDay==13 & birthYear==53
replace lott=81 if birthMonth==4 & birthDay==14 & birthYear==53
replace lott=343 if birthMonth==4 & birthDay==15 & birthYear==53
replace lott=119 if birthMonth==4 & birthDay==16 & birthYear==53
replace lott=183 if birthMonth==4 & birthDay==17 & birthYear==53
replace lott=242 if birthMonth==4 & birthDay==18 & birthYear==53
replace lott=158 if  birthMonth==4 & birthDay==19 & birthYear==53
replace lott=314 if birthMonth==4 & birthDay==20 & birthYear==53
replace lott=4 if birthMonth==4 & birthDay==21 & birthYear==53
replace lott=264 if birthMonth==4 & birthDay==22 & birthYear==53
replace lott=279 if birthMonth==4 & birthDay==23 & birthYear==53
replace lott=362 if  birthMonth==4 & birthDay==24 & birthYear==53
replace lott=255 if  birthMonth==4 & birthDay==25 & birthYear==53
replace lott=233 if  birthMonth==4 & birthDay==26 & birthYear==53
replace lott=265 if birthMonth==4 & birthDay==27 & birthYear==53
replace lott=55 if  birthMonth==4 & birthDay==28 & birthYear==53
replace lott=93 if birthMonth==4 & birthDay==29 & birthYear==53
replace lott=69 if birthMonth==4 & birthDay==30 & birthYear==53
	
*05/1953
replace lott=58 if birthMonth==5 & birthDay==1 & birthYear==53
replace lott=275 if birthMonth==5 & birthDay==2 & birthYear==53
replace lott=166 if birthMonth==5 & birthDay==3 & birthYear==53
replace lott=172 if birthMonth==5 & birthDay==4 & birthYear==53
replace lott=292 if birthMonth==5 & birthDay==5 & birthYear==53
replace lott=337 if birthMonth==5 & birthDay==6 & birthYear==53
replace lott=145 if birthMonth==5 & birthDay==7 & birthYear==53
replace lott=201 if birthMonth==5 & birthDay==8 & birthYear==53
replace lott=276 if birthMonth==5 & birthDay==9 & birthYear==53
replace lott=100 if birthMonth==5 & birthDay==10 & birthYear==53
replace lott=307 if birthMonth==5 & birthDay==11 & birthYear==53
replace lott=115 if birthMonth==5 & birthDay==12 & birthYear==53
replace lott=49 if birthMonth==5 & birthDay==13 & birthYear==53
replace lott=224 if birthMonth==5 & birthDay==14 & birthYear==53
replace lott=165 if birthMonth==5 & birthDay==15 & birthYear==53
replace lott=101 if birthMonth==5 & birthDay==16 & birthYear==53
replace lott=273 if birthMonth==5 & birthDay==17 & birthYear==53
replace lott=98 if birthMonth==5 & birthDay==18 & birthYear==53
replace lott=148 if  birthMonth==5 & birthDay==19 & birthYear==53
replace lott=274 if birthMonth==5 & birthDay==20 & birthYear==53
replace lott=310 if birthMonth==5 & birthDay==21 & birthYear==53
replace lott=333 if birthMonth==5 & birthDay==22 & birthYear==53
replace lott=216 if birthMonth==5 & birthDay==23 & birthYear==53
replace lott=246 if  birthMonth==5 & birthDay==24 & birthYear==53
replace lott=122 if  birthMonth==5 & birthDay==25 & birthYear==53
replace lott=118 if  birthMonth==5 & birthDay==26 & birthYear==53
replace lott=293 if birthMonth==5 & birthDay==27 & birthYear==53
replace lott=18 if  birthMonth==5 & birthDay==28 & birthYear==53
replace lott=133 if birthMonth==5 & birthDay==29 & birthYear==53
replace lott=48 if birthMonth==5 & birthDay==30 & birthYear==53
replace lott=67 if birthMonth==5 & birthDay==31 & birthYear==53

*06/1953
replace lott=15 if birthMonth==6 & birthDay==1 & birthYear==53
replace lott=360 if birthMonth==6 & birthDay==2 & birthYear==53
replace lott=245 if birthMonth==6 & birthDay==3 & birthYear==53
replace lott=207 if birthMonth==6 & birthDay==4 & birthYear==53
replace lott=230 if birthMonth==6 & birthDay==5 & birthYear==53
replace lott=87 if birthMonth==6 & birthDay==6 & birthYear==53
replace lott=251 if birthMonth==6 & birthDay==7 & birthYear==53
replace lott=282 if birthMonth==6 & birthDay==8 & birthYear==53
replace lott=83 if birthMonth==6 & birthDay==9 & birthYear==53
replace lott=178 if birthMonth==6 & birthDay==10 & birthYear==53
replace lott=64 if birthMonth==6 & birthDay==11 & birthYear==53
replace lott=190 if birthMonth==6 & birthDay==12 & birthYear==53
replace lott=318 if birthMonth==6 & birthDay==13 & birthYear==53
replace lott=95 if birthMonth==6 & birthDay==14 & birthYear==53
replace lott=16 if birthMonth==6 & birthDay==15 & birthYear==53
replace lott=32 if birthMonth==6 & birthDay==16 & birthYear==53
replace lott=91 if birthMonth==6 & birthDay==17 & birthYear==53
replace lott=238 if birthMonth==6 & birthDay==18 & birthYear==53
replace lott=52 if  birthMonth==6 & birthDay==19 & birthYear==53
replace lott=77 if birthMonth==6 & birthDay==20 & birthYear==53
replace lott=315 if birthMonth==6 & birthDay==21 & birthYear==53
replace lott=146 if birthMonth==6 & birthDay==22 & birthYear==53
replace lott=212 if birthMonth==6 & birthDay==23 & birthYear==53
replace lott=61 if  birthMonth==6 & birthDay==24 & birthYear==53
replace lott=143 if  birthMonth==6 & birthDay==25 & birthYear==53
replace lott=345 if  birthMonth==6 & birthDay==26 & birthYear==53
replace lott=330 if birthMonth==6 & birthDay==27 & birthYear==53
replace lott=53 if  birthMonth==6 & birthDay==28 & birthYear==53
replace lott=75 if birthMonth==6 & birthDay==29 & birthYear==53
replace lott=142 if birthMonth==6 & birthDay==30 & birthYear==53

*07/1953
replace lott=39 if birthMonth==7 & birthDay==1 & birthYear==53
replace lott=297 if birthMonth==7 & birthDay==2 & birthYear==53
replace lott=109 if birthMonth==7 & birthDay==3 & birthYear==53
replace lott=92 if birthMonth==7 & birthDay==4 & birthYear==53
replace lott=139 if birthMonth==7 & birthDay==5 & birthYear==53
replace lott=132 if birthMonth==7 & birthDay==6 & birthYear==53
replace lott=285 if birthMonth==7 & birthDay==7 & birthYear==53
replace lott=355 if birthMonth==7 & birthDay==8 & birthYear==53
replace lott=179 if birthMonth==7 & birthDay==9 & birthYear==53
replace lott=89 if birthMonth==7 & birthDay==10 & birthYear==53
replace lott=202 if birthMonth==7 & birthDay==11 & birthYear==53
replace lott=340 if birthMonth==7 & birthDay==12 & birthYear==53
replace lott=306 if birthMonth==7 & birthDay==13 & birthYear==53
replace lott=305 if birthMonth==7 & birthDay==14 & birthYear==53
replace lott=359 if birthMonth==7 & birthDay==15 & birthYear==53
replace lott=74 if birthMonth==7 & birthDay==16 & birthYear==53
replace lott=199 if birthMonth==7 & birthDay==17 & birthYear==53
replace lott=121 if birthMonth==7 & birthDay==18 & birthYear==53
replace lott=332 if  birthMonth==7 & birthDay==19 & birthYear==53
replace lott=33 if birthMonth==7 & birthDay==20 & birthYear==53
replace lott=5 if birthMonth==7 & birthDay==21 & birthYear==53
replace lott=286 if birthMonth==7 & birthDay==22 & birthYear==53
replace lott=365 if birthMonth==7 & birthDay==23 & birthYear==53
replace lott=324 if  birthMonth==7 & birthDay==24 & birthYear==53
replace lott=35 if  birthMonth==7 & birthDay==25 & birthYear==53
replace lott=204 if  birthMonth==7 & birthDay==26 & birthYear==53
replace lott=60 if birthMonth==7 & birthDay==27 & birthYear==53
replace lott=185 if  birthMonth==7 & birthDay==28  & birthYear==53
replace lott=222 if birthMonth==7 & birthDay==29 & birthYear==53
replace lott=200 if birthMonth==7 & birthDay==30 & birthYear==53
replace lott=253 if birthMonth==7 & birthDay==31 & birthYear==53

*08/1953
replace lott=323 if birthMonth==8 & birthDay==1 & birthYear==53
replace lott=27 if birthMonth==8 & birthDay==2 & birthYear==53
replace lott=3 if birthMonth==8 & birthDay==3 & birthYear==53
replace lott=313 if birthMonth==8 & birthDay==4 & birthYear==53
replace lott=63 if birthMonth==8 & birthDay==5 & birthYear==53
replace lott=208 if birthMonth==8 & birthDay==6 & birthYear==53
replace lott=57 if birthMonth==8 & birthDay==7 & birthYear==53
replace lott=131 if birthMonth==8 & birthDay==8 & birthYear==53
replace lott=7 if birthMonth==8 & birthDay==9 & birthYear==53
replace lott=249 if birthMonth==8 & birthDay==10 & birthYear==53
replace lott=125 if birthMonth==8 & birthDay==11 & birthYear==53
replace lott=198 if birthMonth==8 & birthDay==12 & birthYear==53
replace lott=329 if birthMonth==8 & birthDay==13 & birthYear==53
replace lott=205 if birthMonth==8 & birthDay==14 & birthYear==53
replace lott=241 if birthMonth==8 & birthDay==15 & birthYear==53
replace lott=19 if birthMonth==8 & birthDay==16 & birthYear==53
replace lott=8 if birthMonth==8 & birthDay==17 & birthYear==53
replace lott=113 if birthMonth==8 & birthDay==18 & birthYear==53
replace lott=105 if  birthMonth==8 & birthDay==19 & birthYear==53
replace lott=162 if birthMonth==8 & birthDay==20 & birthYear==53
replace lott=30 if birthMonth==8 & birthDay==21 & birthYear==53
replace lott=140 if birthMonth==8 & birthDay==22 & birthYear==53
replace lott=302 if birthMonth==8 & birthDay==23 & birthYear==53
replace lott=138 if  birthMonth==8 & birthDay==24 & birthYear==53
replace lott=290 if  birthMonth==8 & birthDay==25 & birthYear==53
replace lott=76 if  birthMonth==8 & birthDay==26 & birthYear==53
replace lott=34 if birthMonth==8 & birthDay==27 & birthYear==53
replace lott=40 if  birthMonth==8 & birthDay==28 & birthYear==53
replace lott=84 if birthMonth==8 & birthDay==29 & birthYear==53
replace lott=182 if birthMonth==8 & birthDay==30 & birthYear==53
replace lott=218 if birthMonth==8 & birthDay==31 & birthYear==53

*09/1953
replace lott=219 if birthMonth==9 & birthDay==1 & birthYear==53
replace lott=17 if birthMonth==9 & birthDay==2 & birthYear==53
replace lott=226 if birthMonth==9 & birthDay==3 & birthYear==53
replace lott=356 if birthMonth==9 & birthDay==4 & birthYear==53
replace lott=354 if birthMonth==9 & birthDay==5 & birthYear==53
replace lott=173 if birthMonth==9 & birthDay==6 & birthYear==53
replace lott=144 if birthMonth==9 & birthDay==7 & birthYear==53
replace lott=97 if birthMonth==9 & birthDay==8 & birthYear==53
replace lott=364 if birthMonth==9 & birthDay==9 & birthYear==53
replace lott=217 if birthMonth==9 & birthDay==10 & birthYear==53
replace lott=334 if birthMonth==9 & birthDay==11 & birthYear==53
replace lott=43 if birthMonth==9 & birthDay==12 & birthYear==53
replace lott=229 if birthMonth==9 & birthDay==13 & birthYear==53
replace lott=353 if birthMonth==9 & birthDay==14 & birthYear==53
replace lott=235 if birthMonth==9 & birthDay==15 & birthYear==53
replace lott=225 if birthMonth==9 & birthDay==16 & birthYear==53
replace lott=189 if birthMonth==9 & birthDay==17 & birthYear==53
replace lott=289 if birthMonth==9 & birthDay==18 & birthYear==53
replace lott=228 if  birthMonth==9 & birthDay==19 & birthYear==53
replace lott=141 if birthMonth==9 & birthDay==20 & birthYear==53
replace lott=123 if birthMonth==9 & birthDay==21 & birthYear==53
replace lott=268 if birthMonth==9 & birthDay==22 & birthYear==53
replace lott=296 if birthMonth==9 & birthDay==23 & birthYear==53
replace lott=236 if  birthMonth==9 & birthDay==24 & birthYear==53
replace lott=291 if  birthMonth==9 & birthDay==25 & birthYear==53
replace lott=29 if  birthMonth==9 & birthDay==26 & birthYear==53
replace lott=248 if birthMonth==9 & birthDay==27 & birthYear==53
replace lott=70 if  birthMonth==9 & birthDay==28 & birthYear==53
replace lott=196 if birthMonth==9 & birthDay==29 & birthYear==53
replace lott=184 if birthMonth==9 & birthDay==30 & birthYear==53

*10/1953
replace lott=215 if birthMonth==10 & birthDay==1 & birthYear==53
replace lott=128 if birthMonth==10 & birthDay==2 & birthYear==53
replace lott=103 if birthMonth==10 & birthDay==3 & birthYear==53
replace lott=79 if birthMonth==10 & birthDay==4 & birthYear==53
replace lott=86 if birthMonth==10 & birthDay==5 & birthYear==53
replace lott=41 if birthMonth==10 & birthDay==6 & birthYear==53
replace lott=129 if birthMonth==10 & birthDay==7 & birthYear==53
replace lott=157 if birthMonth==10 & birthDay==8 & birthYear==53
replace lott=116 if birthMonth==10 & birthDay==9 & birthYear==53
replace lott=342 if birthMonth==10 & birthDay==10 & birthYear==53
replace lott=319 if birthMonth==10 & birthDay==11 & birthYear==53
replace lott=171 if birthMonth==10 & birthDay==12 & birthYear==53
replace lott=269 if birthMonth==10 & birthDay==13 & birthYear==53
replace lott=14 if birthMonth==10 & birthDay==14 & birthYear==53
replace lott=277 if birthMonth==10 & birthDay==15 & birthYear==53
replace lott=59 if birthMonth==10 & birthDay==16 & birthYear==53
replace lott=177 if birthMonth==10 & birthDay==17 & birthYear==53
replace lott=192 if birthMonth==10 & birthDay==18 & birthYear==53
replace lott=167 if birthMonth==10 & birthDay==19 & birthYear==53
replace lott=352 if birthMonth==10 & birthDay==20 & birthYear==53
replace lott=288 if birthMonth==10 & birthDay==21 & birthYear==53
replace lott=191 if birthMonth==10 & birthDay==22 & birthYear==53
replace lott=193 if birthMonth==10 & birthDay==23 & birthYear==53
replace lott=256 if birthMonth==10 & birthDay==24 & birthYear==53 
replace lott=9 if birthMonth==10 & birthDay==25 & birthYear==53
replace lott=78 if birthMonth==10 & birthDay==26 & birthYear==53 
replace lott=325 if birthMonth==10 & birthDay==27 & birthYear==53
replace lott=327 if birthMonth==10 & birthDay==28 & birthYear==53
replace lott=349 if birthMonth==10 & birthDay==29 & birthYear==53
replace lott=346 if birthMonth==10 & birthDay==30 & birthYear==53
replace lott=10 if birthMonth==10 & birthDay==31 & birthYear==53

*11/1953
replace lott=107 if birthMonth==11 & birthDay==1 & birthYear==53
replace lott=214 if birthMonth==11 & birthDay==2 & birthYear==53
replace lott=232 if birthMonth==11 & birthDay==3 & birthYear==53
replace lott=339 if birthMonth==11 & birthDay==4 & birthYear==53
replace lott=223 if birthMonth==11 & birthDay==5 & birthYear==53
replace lott=211 if birthMonth==11 & birthDay==6 & birthYear==53 
replace lott=299 if birthMonth==11 & birthDay==7 & birthYear==53
replace lott=312 if birthMonth==11 & birthDay==8 & birthYear==53
replace lott=151 if birthMonth==11 & birthDay==9 & birthYear==53
replace lott=257 if birthMonth==11 & birthDay==10 & birthYear==53
replace lott=159 if birthMonth==11 & birthDay==11 & birthYear==53
replace lott=66 if birthMonth==11 & birthDay==12 & birthYear==53
replace lott=124 if birthMonth==11 & birthDay==13 & birthYear==53
replace lott=237 if birthMonth==11 & birthDay==14 & birthYear==53
replace lott=176 if birthMonth==11 & birthDay==15 & birthYear==53
replace lott=209 if birthMonth==11 & birthDay==16 & birthYear==53
replace lott=284 if birthMonth==11 & birthDay==17 & birthYear==53
replace lott=160 if birthMonth==11 & birthDay==18 & birthYear==53
replace lott=270 if birthMonth==11 & birthDay==19 & birthYear==53
replace lott=301 if birthMonth==11 & birthDay==20 & birthYear==53
replace lott=287 if birthMonth==11 & birthDay==21 & birthYear==53
replace lott=102 if birthMonth==11 & birthDay==22 & birthYear==53
replace lott=320 if birthMonth==11 & birthDay==23 & birthYear==53
replace lott=180 if birthMonth==11 & birthDay==24 & birthYear==53
replace lott=25 if birthMonth==11 & birthDay==25 & birthYear==53
replace lott=344 if birthMonth==11 & birthDay==26 & birthYear==53
replace lott=135 if birthMonth==11 & birthDay==27 & birthYear==53
replace lott=130 if birthMonth==11 & birthDay==28 & birthYear==53
replace lott=147 if birthMonth==11 & birthDay==29 & birthYear==53
replace lott=134 if birthMonth==11 & birthDay==30 & birthYear==53

*12/1953
replace lott=170 if birthMonth==12 & birthDay==1 & birthYear==53
replace lott=90 if birthMonth==12 & birthDay==2 & birthYear==53
replace lott=56 if birthMonth==12 & birthDay==3 & birthYear==53
replace lott=250 if birthMonth==12 & birthDay==4 & birthYear==53
replace lott=31 if birthMonth==12 & birthDay==5 & birthYear==53
replace lott=336 if birthMonth==12 & birthDay==6 & birthYear==53
replace lott=267 if birthMonth==12 & birthDay==7 & birthYear==53
replace lott=210 if birthMonth==12 & birthDay==8 & birthYear==53
replace lott=120 if birthMonth==12 & birthDay==9 & birthYear==53
replace lott=73 if birthMonth==12 & birthDay==10 & birthYear==53
replace lott=82 if birthMonth==12 & birthDay==11 & birthYear==53
replace lott=85 if birthMonth==12 & birthDay==12 & birthYear==53
replace lott=335 if birthMonth==12 & birthDay==13 & birthYear==53
replace lott=38 if birthMonth==12 & birthDay==14 & birthYear==53
replace lott=137 if birthMonth==12 & birthDay==15 & birthYear==53
replace lott=187 if birthMonth==12 & birthDay==16 & birthYear==53
replace lott=294 if birthMonth==12 & birthDay==17 & birthYear==53
replace lott=13 if birthMonth==12 & birthDay==18 & birthYear==53
replace lott=168 if birthMonth==12 & birthDay==19 & birthYear==53
replace lott=149 if birthMonth==12 & birthDay==20 & birthYear==53
replace lott=80 if birthMonth==12 & birthDay==21 & birthYear==53
replace lott=188 if birthMonth==12 & birthDay==22 & birthYear==53
replace lott=252 if birthMonth==12 & birthDay==23 & birthYear==53
replace lott=155 if birthMonth==12 & birthDay==24 & birthYear==53
replace lott=6 if birthMonth==12 & birthDay==25 & birthYear==53
replace lott=351 if birthMonth==12 & birthDay==26 & birthYear==53
replace lott=194 if birthMonth==12 & birthDay==27 & birthYear==53
replace lott=156 if birthMonth==12 & birthDay==28 & birthYear==53
replace lott=175 if birthMonth==12 & birthDay==29 & birthYear==53
replace lott=281 if birthMonth==12 & birthDay==30 & birthYear==53
replace lott=164 if birthMonth==12 & birthDay==31 & birthYear==53

*****Total Sample (=1 in the estimation sample; =0 not in the estimation sample)
gen totalSample=9 
replace totalSample=0 if birthYear<48 | birthYear>52
replace totalSample=0 if armForce==9 & yearEnterMilitary==99

replace totalSample=0 if lott==999 
replace totalSample=1 if totalSample==9

*****First use drug before 18********
tab everUseDrug 
tab ageFirstUseAnyDrugs
gen firstUseDrugBefore18=9
replace firstUseDrugBefore18=1 if everUseDrug==1 & ageFirstUseAnyDrugs<=18
replace firstUseDrugBefore18=0 if everUseDrug==0 | ageFirstUseAnyDrugs>18
tab firstUseDrugBefore18

*****Use drug during 20-25********
tab everUseDrug 
tab ageFirstUseAnyDrugs
gen firstUseDrugDuringDraft=9
replace firstUseDrugDuringDraft=1 if everUseDrug==1 & ageFirstUseAnyDrugs<=25 & ageFirstUseAnyDrugs>=20
replace firstUseDrugDuringDraft=0 if everUseDrug==0 | ageFirstUseAnyDrugs<20 | ageFirstUseAnyDrugs>25
tab firstUseDrugDuringDraft

****Total Times Incarcerated for Offenses other than drunkeness****
gen timesOtherTotal=999
replace  timesOtherTotal=timesOtherAdu+timesOtherJuv if timesOtherJuv!=999 & timesOtherAdu!=999
replace  timesOtherTotal=timesOtherJuv if timesOtherAdu!=999 & servOther==1 
replace  timesOtherTotal=timesOtherAdu if timesOtherJuv!=999 & servOther==1 
replace  timesOtherTotal=0 if servOther==0
tab timesOtherTotal

*****Previous Incarceration before 1968********
tab firstAdmitYear
tab secondAdmitYear 
tab thirdAdmitYear 
tab fourthAdmitYear 
tab fifthAdmitYear 
tab sixthAdmitYear 
tab seventhAdmitYear 
tab eighthAdmitYear 
tab ninthAdmitYear 
tab tenthAdmitYear 
tab eleventhAdmitYear 
tab twelfthAdmitYear 
tab thirteethAdmitYear
tab servOther 

gen incarcerationBefore1968=9

egen earliestIncarceration=rowmin(firstAdmitYear secondAdmitYear thirdAdmitYear /// 
 fourthAdmitYear fifthAdmitYear sixthAdmitYear seventhAdmitYear ///
 eighthAdmitYear eighthAdmitYear ninthAdmitYear tenthAdmitYear /// 
 eleventhAdmitYear twelfthAdmitYear thirteethAdmitYear) 

tab  earliestIncarceration
 
replace incarcerationBefore1968=1 if earliestIncarceration<68
  
replace incarcerationBefore1968=0 if (earliestIncarceration>=68 & earliestIncarceration!=99) | ///
servOther==0 
 
tab incarcerationBefore1968

*****Previous Incarceration During 1969 to 1972********
tab firstAdmitYear
tab secondAdmitYear 
tab thirdAdmitYear 
tab fourthAdmitYear 
tab fifthAdmitYear 
tab sixthAdmitYear 
tab seventhAdmitYear 
tab eighthAdmitYear 
tab ninthAdmitYear 
tab tenthAdmitYear 
tab eleventhAdmitYear 
tab twelfthAdmitYear 
tab thirteethAdmitYear
tab servOther 

gen incarcerationDuringDraft=9

foreach time in first second third fourth fifth sixth seventh eighth ninth tenth /// 
eleventh twelfth thirteeth {
display `"`time' admission"' 
replace incarcerationDuringDraft=1 if (`time'AdmitYear<=72 & `time'AdmitYear>=69) 
replace incarcerationDuringDraft=0 if  (`time'AdmitYear>72 & `time'AdmitYear!=99 & /// 
incarcerationDuringDraft!=1) | (`time'AdmitYear<69 & incarcerationDuringDraft!=1) | ///
servOther==0 
} 

tab incarcerationDuringDraft

*****Previous Probation before 18 years old********
tab ageProbation 
tab ageProbationJuv 
tab ageProbationAdu

egen youngestProbation=rowmin(ageProbation ageProbationJuv ageProbationAdu)
tab youngestProbation
gen probationBy18=9
replace probationBy18=1 if youngestProbation<18
replace probationBy18=0 if (youngestProbation>=18 & youngestProbation!=99) | everProbation==0 
tab probationBy18

*****Previous Probation during 20-25 years old********
tab ageProbation 
tab ageProbationJuv 
tab ageProbationAdu

gen probationDuringDraft=9
replace probationDuringDraft=1 if (ageProbation>=20 & ageProbation<=25 ) | ///
 (ageProbationJuv>=20 & ageProbationJuv<=25) | (ageProbationAdu>=20 & ageProbationAdu<=25)
replace probationDuringDraft=0 if ((ageProbation<20 | ageProbation>25) & probationDuringDraft!=1) & /// 
((ageProbationJuv<20 | ageProbationJuv>25) & probationDuringDraft!=1) & ///
((ageProbationAdu<20 | ageProbationAdu>25) & probationDuringDraft!=1)
tab probationDuringDraft

******Previous arrest before 18 years old*****
tab ageFirstArrest

gen firstArrestBy18=9
replace firstArrestBy18=1 if ageFirstArrest<18
replace firstArrestBy18=0 if ageFirstArrest>=18 & ageFirstArrest!=99
tab firstArrestBy18

******Previous arrest during 20-25 years old*****
gen firstArrestDuringDraft=9
replace firstArrestDuringDraft=1 if ageFirstArrest>=20 & ageFirstArrest<=25
replace firstArrestDuringDraft=0 if (ageFirstArrest>25 & ageFirstArrest!=99)| /// 
(ageFirstArrest<20 & ageFirstArrest!=99) 
tab firstArrestDuringDraft

save intermediate, replace 

set more off
use intermediate, clear 

/* Violent Crime:1979 */ 
tab currentOffense1 if study==1979
tab currentOffense2 if study==1979
tab currentOffense3 if study==1979
tab currentOffense4 if study==1979

gen currentViolent=9
replace currentViolent=1 if study==1979 & ((currentOffense1>=1 & currentOffense1<=18) ///
| (currentOffense2>=1 & currentOffense2<=18) | (currentOffense3>=1 & currentOffense3<=18) ///
| (currentOffense4>=1 & currentOffense4<=18))
replace currentViolent=0 if study==1979 & (((currentOffense1>18 & currentOffense1<=78)|currentOffense1==0) & ///
 ((currentOffense2>18 & currentOffense2<=78)|currentOffense2==0) & ///
 ((currentOffense3>18 & currentOffense3<=78)|currentOffense3==0) & ///
 ((currentOffense4>18 & currentOffense4<=78)|currentOffense4==0)) 
tab currentViolent if study==1979

/* Lindo and Stoecker Violent Crime: 1979 */ 
tab LScurrentOffense1 if study==1979
tab LScurrentOffense2 if study==1979
tab LScurrentOffense3 if study==1979
tab LScurrentOffense4 if study==1979

gen LScurrentViolent=9

replace LScurrentViolent=1 if study==1979 & ((LScurrentOffense1>=1 & LScurrentOffense1<=18) ///
| (LScurrentOffense2>=1 & LScurrentOffense2<=18) | (LScurrentOffense3>=1 & LScurrentOffense3<=18) ///
| (LScurrentOffense4>=1 & LScurrentOffense4<=18))

replace LScurrentViolent=0 if study==1979 & (((LScurrentOffense1>18 & LScurrentOffense1<=78)|LScurrentOffense1==0) & ///
 ((LScurrentOffense2>18 & LScurrentOffense2<=78)| LScurrentOffense2==0) & ///
 ((LScurrentOffense3>18 & LScurrentOffense3<=78)| LScurrentOffense3==0) & ///
 ((LScurrentOffense4>18 & LScurrentOffense4<=78)| LScurrentOffense4==0)) 
 
tab LScurrentViolent if study==1979

/* Ever Violent Crime: 1979 */
gen EvercurrentViolent=9

replace EvercurrentViolent=1 if study==1979 & (LScurrentViolent==1 |  currentViolent==1) 
replace EvercurrentViolent=0 if study==1979 & (LScurrentViolent==0 &  currentViolent==0)

tab  EvercurrentViolent if study==1979 

/* Lindo and Stoecker Non-violent Crime: 1979 */
gen LSnonviolent=1 if study==1979 & LScurrentViolent==0 

replace LSnonviolent=0 if study==1979 & LScurrentViolent==1

replace LSnonviolent=9 if study==1979 & LScurrentViolent==9

tab LSnonviolent 

/* Ever Non-violent Crime: 1979 */
gen Evernonviolent=1 if study==1979 & EvercurrentViolent==0 

replace Evernonviolent=0 if study==1979 & EvercurrentViolent==1

replace Evernonviolent=9 if study==1979 & EvercurrentViolent==9

tab Evernonviolent 


/* Property Crime:1979 */
gen currentProperty=9
replace currentProperty=1 if study==1979 & ((currentOffense1>=21 & currentOffense1 <=34) ///
 | (currentOffense2>=21 & currentOffense2<=34) | (currentOffense3>=21 & currentOffense3<=34) | ///
 (currentOffense4>=21 & currentOffense4<=34))
replace currentProperty=0 if study==1979 & ((currentOffense1>34 & currentOffense1 <=78)| currentOffense1==0 | currentOffense1<21 ) ///
& ((currentOffense2>34 & currentOffense2 <=78)| currentOffense2==0 | currentOffense2<21 ) ///
& ((currentOffense3>34 & currentOffense3 <=78)| currentOffense3==0 |currentOffense3<21 ) ///
& ((currentOffense4>34 & currentOffense4<=78)| currentOffense4==0 |currentOffense4<21 )
tab currentProperty if study==1979

/* Drug Crime:1979 */
gen currentDrug=9
replace currentDrug=1 if study==1979 & ((currentOffense1>=41 & currentOffense1 <=53) ///
| (currentOffense2>=41 & currentOffense2<=53) | (currentOffense3>=41 & currentOffense3<=53) ///
 | (currentOffense4>=41 & currentOffense4<=53))
replace currentDrug=0 if study==1979 & ((currentOffense1>53 & currentOffense1 <=78)| currentOffense1==0 | currentOffense1<41 ) /// 
& ((currentOffense2>53 & currentOffense2 <=78)| currentOffense2==0 | currentOffense2<41 ) /// 
& ((currentOffense3>53 & currentOffense3 <=78)| currentOffense3==0 | currentOffense3<41 ) ///
& ((currentOffense4>53 & currentOffense4<=78)| currentOffense4==0 | currentOffense4 <41 )
tab currentDrug if study==1979

/* Public order Crime:1979 */
gen currentPublic=9
replace currentPublic=1 if study==1979 & ((currentOffense1>=61 & currentOffense1 <=78) ///
 | (currentOffense2>=61 & currentOffense2<=78) | (currentOffense3>=61 & currentOffense3<=78) ///
 | (currentOffense4>=61 & currentOffense4<=78))
replace currentPublic=0 if study==1979 & (currentOffense1<61|currentOffense1==0)  ///
&  (currentOffense2<61|currentOffense2==0)  &  (currentOffense3<61|currentOffense3==0) ///
 & (currentOffense4<61|currentOffense4==0) 
tab currentPublic if study==1979


/* Violent Crime:1986 */ 
replace currentViolent=1 if study==1986 & ((currentOffense1>=10 & currentOffense1 <=181) | /// 
 (currentOffense2>=10 & currentOffense2<=181) | (currentOffense3>=10 & currentOffense3<=181) | /// 
 (currentOffense4>=10 & currentOffense4<=181)| (currentOffense5>=10 & currentOffense5<=181) )
replace currentViolent=0 if study==1986 & ((currentOffense1>181 & currentOffense1<=680)|currentOffense1==999) /// 
& ((currentOffense2>181 & currentOffense2<=680)|currentOffense2==999)  /// 
& ((currentOffense3>181 & currentOffense3 <=680)|currentOffense3==999) /// 
& ((currentOffense4>181 & currentOffense4<=680)|currentOffense4==999) /// 
& ((currentOffense5>181 & currentOffense5<=680)|currentOffense5==999)
tab currentViolent if study==1986
**Stop here

/* Lindo and Stoecker Violent Crime: 1986 */ 
tab LScurrentOffense1 if study==1986
tab LScurrentOffense2 if study==1986
tab LScurrentOffense3 if study==1986
tab LScurrentOffense4 if study==1986
tab LScurrentOffense5 if study==1986
tab LScurrentOffense6 if study==1986

replace LScurrentViolent=1 if study==1986 & ((LScurrentOffense1>=10 & LScurrentOffense1<=189) ///
| (LScurrentOffense2>=10 & LScurrentOffense2<=189) | (LScurrentOffense3>=10 & LScurrentOffense3<=189) ///
| (LScurrentOffense4>=10 & LScurrentOffense4<=189) | (LScurrentOffense5>=10 & LScurrentOffense5<=189) | ///
  (LScurrentOffense6>=10 & LScurrentOffense6<=189))

replace LScurrentViolent=0 if study==1986 & (((LScurrentOffense1>189 & LScurrentOffense1<=680 )|LScurrentOffense1==999) & ///
 ((LScurrentOffense2>189 & LScurrentOffense2<=680)| LScurrentOffense2==999) & ///
 ((LScurrentOffense3>189 & LScurrentOffense3<=680)| LScurrentOffense3==999) & ///
 ((LScurrentOffense4>189 & LScurrentOffense4<=680)| LScurrentOffense4==999) & ///
  ((LScurrentOffense5>189 & LScurrentOffense5<=680)| LScurrentOffense5==999) & ///
  ((LScurrentOffense6>189 & LScurrentOffense6<=680)| LScurrentOffense6==999))
 
tab LScurrentViolent if study==1986

/* Ever Violent Crime: 1986 */

replace EvercurrentViolent=1 if study==1986 & (LScurrentViolent==1 |  currentViolent==1) 
replace EvercurrentViolent=0 if study==1986 & (LScurrentViolent==0 &  currentViolent==0)

tab  EvercurrentViolent if study==1986

/* Lindo and Stoecker Non-violent Crime: 1986 */
replace LSnonviolent=1 if study==1986 & LScurrentViolent==0 

replace LSnonviolent=0 if study==1986 & LScurrentViolent==1

replace LSnonviolent=9 if study==1986 & LScurrentViolent==9

tab LSnonviolent if study==1986

/* Ever Non-violent Crime: 1986 */
replace Evernonviolent=1 if study==1986 & EvercurrentViolent==0 

replace Evernonviolent=0 if study==1986 & EvercurrentViolent==1

replace Evernonviolent=9 if study==1986 & EvercurrentViolent==9

tab Evernonviolent if study==1986



/* Property Crime:1986 */
replace currentProperty=1 if study==1986 & ((currentOffense1>=190 & currentOffense1 <=330) | /// 
(currentOffense2>=190 & currentOffense2<=330) | (currentOffense3>=190 & currentOffense3<=330) | ///
(currentOffense4>=190 & currentOffense4<=330) | (currentOffense5>=190 & currentOffense5<=330))
replace currentProperty=0 if study==1986 & ((currentOffense1>330 & currentOffense1 <=680)| /// 
currentOffense1<190 | currentOffense1==999) & ((currentOffense2>330 & currentOffense2 <=680)| ///
currentOffense2<190 | currentOffense2==999) & ((currentOffense3>330 & currentOffense3 <=680)| ///
currentOffense3<190 | currentOffense3==999) & ((currentOffense4>330 & currentOffense4<=680)| ///
currentOffense4<190 | currentOffense4==999) & ((currentOffense5>330 & currentOffense5<=680)| ///
currentOffense5<190 | currentOffense5==999) 
tab currentProperty if study==1986
/* Drug Crime:1986 */
replace currentDrug=1 if study==1986 & ((currentOffense1>=340 & currentOffense1 <=451) | /// 
(currentOffense2>=340 & currentOffense2<=451) | (currentOffense3>=340 & currentOffense3<=451) | ///
(currentOffense4>=340 & currentOffense4<=451) | (currentOffense5>=340 & currentOffense5<=451)) 
replace currentDrug=0 if study==1986 & ((currentOffense1>451 & currentOffense1 <=680)| currentOffense1<340 | currentOffense1==999) & ///
((currentOffense2>451 & currentOffense2 <=680)| currentOffense2<340 | currentOffense2==999) & /// 
 ((currentOffense3>451 & currentOffense3 <=680)| currentOffense3<340 | currentOffense3==999) & ///
 ((currentOffense4>451 & currentOffense4<=680)| currentOffense4 <340| currentOffense4==999) & ///
 ((currentOffense5>451 & currentOffense5<=680)| currentOffense5<340 | currentOffense5==999)  
tab currentDrug if study==1986
/* Public order Crime:1986 */
replace currentPublic=1 if study==1986 & ((currentOffense1>=460 & currentOffense1 <=672) | ///
(currentOffense2>=460 & currentOffense2<=672) | (currentOffense3>=460 & currentOffense3<=672) | /// 
(currentOffense4>=460 & currentOffense4<=672) | (currentOffense5>=460 & currentOffense5<=672) )
replace currentPublic=0 if study==1986 & ( currentOffense1<460 | (currentOffense1>672 & currentOffense1<=680) | currentOffense1==999 ) & ///
( currentOffense2<460 | (currentOffense2>672 & currentOffense2<=680) | currentOffense2==999) & /// 
( currentOffense3<460 | (currentOffense3>672 & currentOffense3<=680) | currentOffense3==999) & ///
( currentOffense4<460 | (currentOffense4>672 & currentOffense4<=680) | currentOffense4==999) & /// 
( currentOffense5<460 | (currentOffense5>672 & currentOffense5<=680) | currentOffense5==999) 
tab currentPublic if study==1986



/* Violent Crime:1991 */ 
replace currentViolent=1 if study>=1991 & ((currentOffense1>=10 & currentOffense1 <=180) |  ///
(currentOffense2>=10 & currentOffense2<=180) | (currentOffense3>=10 & currentOffense3<=180) | ///
(currentOffense4>=10 & currentOffense4<=180)| (currentOffense5>=10 & currentOffense5<=180)) 
replace currentViolent=0 if study>=1991 & (currentOffense1>180 & currentOffense1 <=680 | currentOffense1==999) /// 
& (currentOffense2>180 & currentOffense2<=680 | currentOffense2==999) ///
& (currentOffense3>180 & currentOffense3<=680 | currentOffense3==999) /// 
& (currentOffense4>180 & currentOffense4<=680 | currentOffense4==999) /// 
& (currentOffense5>180 & currentOffense5<=680 | currentOffense5==999)
tab currentViolent if (study==1991 | study==19912)   

/* Lindo and Stoecker Violent Crime: 1991 */ 
tab LScurrentOffense1 if study>=1991
tab LScurrentOffense2 if study>=1991
tab LScurrentOffense3 if study>=1991
tab LScurrentOffense4 if study>=1991
tab LScurrentOffense5 if study>=1991
tab LScurrentOffense6 if study>=1991

replace LScurrentViolent=1 if study>=1991 & ((LScurrentOffense1>=10 & LScurrentOffense1<=189) ///
| (LScurrentOffense2>=10 & LScurrentOffense2<=189) | (LScurrentOffense3>=10 & LScurrentOffense3<=189) ///
| (LScurrentOffense4>=10 & LScurrentOffense4<=189) | (LScurrentOffense5>=10 & LScurrentOffense5<=189) /// 
|  (LScurrentOffense6>=10 & LScurrentOffense6<=189) )

replace LScurrentViolent=0 if study>=1991 & (((LScurrentOffense1>189 & LScurrentOffense1<=680 )|LScurrentOffense1==999) & ///
 ((LScurrentOffense2>189 & LScurrentOffense2<=680)| LScurrentOffense2==999) & ///
 ((LScurrentOffense3>189 & LScurrentOffense3<=680)| LScurrentOffense3==999) & ///
 ((LScurrentOffense4>189 & LScurrentOffense4<=680)| LScurrentOffense4==999) & ///
  ((LScurrentOffense5>189 & LScurrentOffense5<=680)| LScurrentOffense5==999))
 
tab LScurrentViolent if study>=1991

/* Ever Violent Crime: 1991 */

replace EvercurrentViolent=1 if study>=1991 & (LScurrentViolent==1 |  currentViolent==1) 
replace EvercurrentViolent=0 if study>=1991 & (LScurrentViolent==0 &  currentViolent==0)

tab  EvercurrentViolent if study>=1991

/* Lindo and Stoecker Non-violent Crime: 1991 */
replace LSnonviolent=1 if study>=1991 & LScurrentViolent==0 

replace LSnonviolent=0 if study>=1991 & LScurrentViolent==1

replace LSnonviolent=9 if study>=1991 & LScurrentViolent==9

tab LSnonviolent if study>=1991

/* Ever Non-violent Crime: 1991 */
replace Evernonviolent=1 if study>=1991 & EvercurrentViolent==0 

replace Evernonviolent=0 if study>=1991 & EvercurrentViolent==1

replace Evernonviolent=9 if study>=1991 & EvercurrentViolent==9

tab Evernonviolent if study>=1991

/* Property Crime:1991 */
replace currentProperty=1 if study>=1991 & ((currentOffense1>=190 & currentOffense1 <=335) | /// 
(currentOffense2>=190 & currentOffense2<=335) | (currentOffense3>=190 & currentOffense3<=335) | ///
(currentOffense4>=190 & currentOffense4<=335) | (currentOffense5>=190 & currentOffense5<=335))
replace currentProperty=0 if study>=1991 & ((currentOffense1>335 & currentOffense1 <=680)| /// 
currentOffense1<190 | currentOffense1==999) & ((currentOffense2>335 & currentOffense2 <=680)| ///
currentOffense2<190 | currentOffense2==999) & ((currentOffense3>335 & currentOffense3 <=680)| /// 
currentOffense3<190 | currentOffense3==999) & ((currentOffense4>335 & currentOffense4<=680)| /// 
currentOffense4<190 | currentOffense4==999) & ((currentOffense5>335 & currentOffense5<=680)| /// 
currentOffense5<190 | currentOffense5==999)
tab currentProperty if (study==1991 | study==19912) 
 
/* Drug Crime:1991 */
replace currentDrug=1 if study>=1991 & ((currentOffense1>=340 & currentOffense1 <=450) | /// 
(currentOffense2>=340 & currentOffense2<=450) | (currentOffense3>=340 & currentOffense3<=450) | ///
(currentOffense4>=340 & currentOffense4<=450)| (currentOffense5>=340 & currentOffense5<=450))
replace currentDrug=0 if study>=1991 & ((currentOffense1>450 & currentOffense1 <=680)| /// 
currentOffense1<340 | currentOffense1==999) & ((currentOffense2>450 & currentOffense2 <=680)| ///
 currentOffense2<340 | currentOffense2==999) & ((currentOffense3>450 & currentOffense3 <=680)| /// 
 currentOffense3<340 | currentOffense3==999) & ((currentOffense4>450 & currentOffense4<=680)| ///
 currentOffense4 <340 | currentOffense4==999) & ((currentOffense5>450 & currentOffense5<=680)| ///
 currentOffense5 <340 | currentOffense5==999)
tab currentDrug if (study==1991 | study==19912)  

/* Public order Crime:1991 */
replace currentPublic=1 if study>=1991 & ((currentOffense1>=460 & currentOffense1 <=672) | ///
(currentOffense2>=460 & currentOffense2<=672) | (currentOffense3>=460 & currentOffense3<=672) | ///
(currentOffense4>=460 & currentOffense4<=672) | (currentOffense5>=460 & currentOffense5<=672)) 
replace currentPublic=0 if study>=1991 & ( currentOffense1<460 | (currentOffense1>672 & currentOffense1<=680) | currentOffense1==999) & ///
 ( currentOffense2<460 | (currentOffense2>672 & currentOffense2<=680) | currentOffense2==999) & ///
 ( currentOffense3<460 | (currentOffense3>672 & currentOffense3<=680) | currentOffense3==999) & /// 
 ( currentOffense4<460 | (currentOffense4>672 & currentOffense4<=680) | currentOffense4==999) & /// 
 ( currentOffense5<460 | (currentOffense5>672 & currentOffense5<=680) | currentOffense5==999)
tab currentPublic if (study==1991 | study==19912) 

tab currentViolent
tab currentProperty
tab currentDrug 
tab currentPublic

/* Nonviolent crimes 1979-1991 */ 
gen nonviolent=. 
replace nonviolent=1 if currentProperty==1 | currentDrug==1 | currentPublic==1
replace nonviolent=0 if currentProperty==0 & currentDrug==0 & currentPublic==0 
tab nonviolent

/* Nonviolent crimes 1979-1991 */ 
gen nonviolent_new=9
replace nonviolent_new=1 if currentViolent==0
replace nonviolent_new=0 if currentViolent==1 
tab nonviolent_new
tab currentViolent

save intermediate2, replace 

*****Previous Incarceration for Violent Crime before 1968********
use intermediate2, clear 
set more off
gen previousViolent68=9 

*1979 
foreach x in first second third fourth fifth sixth seventh eighth ninth tenth /// 
 eleventh twelfth thirteeth {
 display `"`x' time offense"'
forvalues i=1(1)4 {
replace previousViolent68=1 if ///
(study==1979) & (`x'ServeOffense`i'>=1 & `x'ServeOffense`i'<=18) & incarcerationBefore1968==1 
}
replace previousViolent68=0 if ///
(study==1979) & previousViolent!=1 & ((((`x'ServeOffense1>18 & `x'ServeOffense1<=78)|`x'ServeOffense1==99)& ///
 ((`x'ServeOffense2>18 & `x'ServeOffense2<=78)|`x'ServeOffense2==99)& ///
 ((`x'ServeOffense3>18 & `x'ServeOffense3<=78)|`x'ServeOffense3==99)& ///
 ((`x'ServeOffense4>18 & `x'ServeOffense4<=78)|`x'ServeOffense4==99)) ///
 | incarcerationBefore1968==0)
}

*1986
foreach x in first second third fourth fifth sixth seventh eighth ninth tenth /// 
 {
 display `"`x' time offense"'
forvalues i=1(1)5 {
replace previousViolent68=1 if ///
(study==1986) & (`x'ServeOffense`i'>=10 & `x'ServeOffense`i'<=181) & incarcerationBefore1968==1
}
replace previousViolent68=0 if ///
(study==1986) & previousViolent!=1 & (((`x'ServeOffense1>181 & `x'ServeOffense1<=710)|`x'ServeOffense1==999)& ///
 ((`x'ServeOffense2>181 & `x'ServeOffense2<=710)|`x'ServeOffense2==999)& ///
 ((`x'ServeOffense3>181 & `x'ServeOffense3<=710)|`x'ServeOffense3==999)& ///
 ((`x'ServeOffense4>181 & `x'ServeOffense4<=710)|`x'ServeOffense4==999)& ///
 ((`x'ServeOffense5>181 & `x'ServeOffense5<=710)|`x'ServeOffense5==999) ///
 | incarcerationBefore1968==0)
}

*1991 
foreach x in first second third fourth fifth sixth seventh eighth ninth tenth /// 
 {
 display `"`x' time offense"'
forvalues i=1(1)5 {
replace previousViolent68=1 if ///
(study>=1991) & (`x'ServeOffense`i'>=10 & `x'ServeOffense`i'<=180) & incarcerationBefore1968==1 
}
replace previousViolent68=0 if ///
(study>=1991) & previousViolent!=1 & (((`x'ServeOffense1>180 & `x'ServeOffense1<=900)|`x'ServeOffense1==999)& ///
 ((`x'ServeOffense2>180 & `x'ServeOffense2<=900)|`x'ServeOffense2==999)& ///
 ((`x'ServeOffense3>180 & `x'ServeOffense3<=900)|`x'ServeOffense3==999)& ///
 ((`x'ServeOffense4>180 & `x'ServeOffense4<=900)|`x'ServeOffense4==999)& ///
 ((`x'ServeOffense5>180 & `x'ServeOffense5<=900)|`x'ServeOffense5==999) ///
 | incarcerationBefore1968==0)
}


tab previousViolent if study==1979
tab previousViolent if study==1986
tab previousViolent if study>=1991

*****Previous Incarceration for Violent Crime between 1969-1972********
set more off
gen previousViolentDuringDraft=9 

*1979 
foreach x in first second third fourth fifth sixth seventh eighth ninth tenth /// 
 eleventh twelfth thirteeth {
 display `"`x' time offense"'
forvalues i=1(1)4 {
replace previousViolentDuringDraft=1 if ///
(study==1979) & (`x'ServeOffense`i'>=1 & `x'ServeOffense`i'<=18) & incarcerationDuringDraft==1 
}
replace previousViolentDuringDraft=0 if ///
(study==1979) & previousViolentDuringDraft!=1 & ((((`x'ServeOffense1>18 & `x'ServeOffense1<=78)|`x'ServeOffense1==99)& ///
 ((`x'ServeOffense2>18 & `x'ServeOffense2<=78)|`x'ServeOffense2==99)& ///
 ((`x'ServeOffense3>18 & `x'ServeOffense3<=78)|`x'ServeOffense3==99)& ///
 ((`x'ServeOffense4>18 & `x'ServeOffense4<=78)|`x'ServeOffense4==99)) ///
 | incarcerationDuringDraft==0)
}

*1986
foreach x in first second third fourth fifth sixth seventh eighth ninth tenth /// 
 {
 display `"`x' time offense"'
forvalues i=1(1)5 {
replace previousViolentDuringDraft=1 if ///
(study==1986) & (`x'ServeOffense`i'>=10 & `x'ServeOffense`i'<=181) & incarcerationDuringDraft==1
}
replace previousViolentDuringDraft=0 if ///
(study==1986) & previousViolentDuringDraft!=1 & (((`x'ServeOffense1>181 & `x'ServeOffense1<=710)|`x'ServeOffense1==999)& ///
 ((`x'ServeOffense2>181 & `x'ServeOffense2<=710)|`x'ServeOffense2==999)& ///
 ((`x'ServeOffense3>181 & `x'ServeOffense3<=710)|`x'ServeOffense3==999)& ///
 ((`x'ServeOffense4>181 & `x'ServeOffense4<=710)|`x'ServeOffense4==999)& ///
 ((`x'ServeOffense5>181 & `x'ServeOffense5<=710)|`x'ServeOffense5==999) ///
 | incarcerationDuringDraft==0)
}

*1991 

foreach x in first second third fourth fifth sixth seventh eighth ninth tenth /// 
 {
 display `"`x' time offense"'
forvalues i=1(1)5 {
replace previousViolentDuringDraft=1 if ///
(study>=1991) & (`x'ServeOffense`i'>=10 & `x'ServeOffense`i'<=180) & incarcerationDuringDraft==1 
}
replace previousViolentDuringDraft=0 if ///
(study>=1991) & previousViolentDuringDraft!=1 & (((`x'ServeOffense1>180 & `x'ServeOffense1<=900)|`x'ServeOffense1==999)& ///
 ((`x'ServeOffense2>180 & `x'ServeOffense2<=900)|`x'ServeOffense2==999)& ///
 ((`x'ServeOffense3>180 & `x'ServeOffense3<=900)|`x'ServeOffense3==999)& ///
 ((`x'ServeOffense4>180 & `x'ServeOffense4<=900)|`x'ServeOffense4==999)& ///
 ((`x'ServeOffense5>180 & `x'ServeOffense5<=900)|`x'ServeOffense5==999) ///
 | incarcerationDuringDraft==0)
}


tab previousViolentDuringDraft if study==1979
tab previousViolentDuringDraft if study==1986
tab previousViolentDuringDraft if study>=1991

*****Previous Incarceration for Non-violent Crime before 1968********
gen previousNonviolent68=9
*1979 
foreach x in first second third fourth fifth sixth seventh eighth ninth tenth /// 
 eleventh twelfth thirteeth {
 display `"`x' time offense"'
forvalues i=1(1)4 {
replace previousNonviolent68=1 if ///
(study==1979) & (`x'ServeOffense`i'>=21 & `x'ServeOffense`i'<=78) & incarcerationBefore1968==1 
}
replace previousNonviolent68=0 if ///
(study==1979) & previousNonviolent!=1 & ((((`x'ServeOffense1>1 & `x'ServeOffense1<=18)|`x'ServeOffense1==99)& ///
 ((`x'ServeOffense2>1 & `x'ServeOffense2<=18)|`x'ServeOffense2==99)& ///
 ((`x'ServeOffense3>1 & `x'ServeOffense3<=18)|`x'ServeOffense3==99)& ///
 ((`x'ServeOffense4>1 & `x'ServeOffense4<=18)|`x'ServeOffense4==99)) ///
 | incarcerationBefore1968==0)
}
tab previousNonviolent68 if study==1979

*1986
foreach x in first second third fourth fifth sixth seventh eighth ninth tenth /// 
 {
 display `"`x' time offense"'
forvalues i=1(1)5 {
replace previousNonviolent68=1 if ///
(study==1986) & (`x'ServeOffense`i'>=190 & `x'ServeOffense`i'<=672) & incarcerationBefore1968==1
}
replace previousNonviolent68=0 if ///
(study==1986) & previousNonviolent!=1 & (( `x'ServeOffense1<190 | (`x'ServeOffense1>672 & `x'ServeOffense1<=710) | `x'ServeOffense1==999 ) & ///
( `x'ServeOffense2<190 | (`x'ServeOffense2>672 & `x'ServeOffense2<=710) | `x'ServeOffense2==999) & /// 
( `x'ServeOffense3<190 | (`x'ServeOffense3>672 & `x'ServeOffense3<=710) | `x'ServeOffense3==999) & ///
( `x'ServeOffense4<190 | (`x'ServeOffense4>672 & `x'ServeOffense4<=710) | `x'ServeOffense4==999) & /// 
( `x'ServeOffense5<190 | (`x'ServeOffense5>672 & `x'ServeOffense5<=710) | `x'ServeOffense5==999) ///
 | incarcerationBefore1968==0)
}
tab previousNonviolent68 if study==1986

*1991  
foreach x in first second third fourth fifth sixth seventh eighth ninth tenth /// 
 {
 display `"`x' time offense"'
forvalues i=1(1)5 {
replace previousNonviolent68=1 if ///
(study>=1991) & (`x'ServeOffense`i'>=190 & `x'ServeOffense`i'<=672) & incarcerationBefore1968==1
}
replace previousNonviolent68=0 if ///
(study>=1991) & previousNonviolent!=1 &  (( `x'ServeOffense1<190 | (`x'ServeOffense1>672 & `x'ServeOffense1<=900) | `x'ServeOffense1==999) & ///
 ( `x'ServeOffense2<190 | (`x'ServeOffense2>672 & `x'ServeOffense2<=900) | `x'ServeOffense2==999) & ///
 ( `x'ServeOffense3<190 | (`x'ServeOffense3>672 & `x'ServeOffense3<=900) | `x'ServeOffense3==999) & /// 
 ( `x'ServeOffense4<190 | (`x'ServeOffense4>672 & `x'ServeOffense4<=900) | `x'ServeOffense4==999) & /// 
 ( `x'ServeOffense5<190 | (`x'ServeOffense5>672 & `x'ServeOffense5<=900) | `x'ServeOffense5==999) ///
 | incarcerationBefore1968==0)
}
tab previousNonviolent68 if study>=1991

*****Previous Incarceration for Non-violent Crime during 1969-1972********
gen previousNonviolentDuringDraft=9
*1979 
foreach x in first second third fourth fifth sixth seventh eighth ninth tenth /// 
 eleventh twelfth thirteeth {
 display `"`x' time offense"'
forvalues i=1(1)4 {
replace previousNonviolentDuringDraft=1 if ///
(study==1979) & (`x'ServeOffense`i'>=21 & `x'ServeOffense`i'<=78) & incarcerationDuringDraft==1 
}
replace previousNonviolentDuringDraft=0 if ///
(study==1979) & previousNonviolentDuringDraft!=1 & ((((`x'ServeOffense1>1 & `x'ServeOffense1<=18)|`x'ServeOffense1==99)& ///
 ((`x'ServeOffense2>1 & `x'ServeOffense2<=18)|`x'ServeOffense2==99)& ///
 ((`x'ServeOffense3>1 & `x'ServeOffense3<=18)|`x'ServeOffense3==99)& ///
 ((`x'ServeOffense4>1 & `x'ServeOffense4<=18)|`x'ServeOffense4==99)) ///
 | incarcerationDuringDraft==0)
}
tab previousNonviolentDuringDraft if study==1979

*1986
foreach x in first second third fourth fifth sixth seventh eighth ninth tenth /// 
 {
 display `"`x' time offense"'
forvalues i=1(1)5 {
replace previousNonviolentDuringDraft=1 if ///
(study==1986) & (`x'ServeOffense`i'>=190 & `x'ServeOffense`i'<=672) & incarcerationDuringDraft==1
}
replace previousNonviolentDuringDraft=0 if ///
(study==1986) & previousNonviolentDuringDraft!=1 & (( `x'ServeOffense1<190 | (`x'ServeOffense1>672 & `x'ServeOffense1<=710) | `x'ServeOffense1==999 ) & ///
( `x'ServeOffense2<190 | (`x'ServeOffense2>672 & `x'ServeOffense2<=710) | `x'ServeOffense2==999) & /// 
( `x'ServeOffense3<190 | (`x'ServeOffense3>672 & `x'ServeOffense3<=710) | `x'ServeOffense3==999) & ///
( `x'ServeOffense4<190 | (`x'ServeOffense4>672 & `x'ServeOffense4<=710) | `x'ServeOffense4==999) & /// 
( `x'ServeOffense5<190 | (`x'ServeOffense5>672 & `x'ServeOffense5<=710) | `x'ServeOffense5==999) ///
 | incarcerationDuringDraft==0)
}
tab previousNonviolentDuringDraft if study==1986

*1991  
foreach x in first second third fourth fifth sixth seventh eighth ninth tenth /// 
 {
 display `"`x' time offense"'
forvalues i=1(1)5 {
replace previousNonviolentDuringDraft=1 if ///
(study>=1991) & (`x'ServeOffense`i'>=190 & `x'ServeOffense`i'<=672) & incarcerationDuringDraft==1
}
replace previousNonviolentDuringDraft=0 if ///
(study>=1991) & previousNonviolentDuringDraft!=1 &  (( `x'ServeOffense1<190 | (`x'ServeOffense1>672 & `x'ServeOffense1<=900) | `x'ServeOffense1==999) & ///
 ( `x'ServeOffense2<190 | (`x'ServeOffense2>672 & `x'ServeOffense2<=900) | `x'ServeOffense2==999) & ///
 ( `x'ServeOffense3<190 | (`x'ServeOffense3>672 & `x'ServeOffense3<=900) | `x'ServeOffense3==999) & /// 
 ( `x'ServeOffense4<190 | (`x'ServeOffense4>672 & `x'ServeOffense4<=900) | `x'ServeOffense4==999) & /// 
 ( `x'ServeOffense5<190 | (`x'ServeOffense5>672 & `x'ServeOffense5<=900) | `x'ServeOffense5==999) ///
 | incarcerationDuringDraft==0)
}
tab previousNonviolentDuringDraft if study>=1991

/*  Vietnam Era military service   */ 
gen vv=9
replace vv=1 if yearEnterMilitary>=68 & yearEnterMilitary<=75
replace vv=0 if armForce==0 | yearEnterMilitary<68 | (yearEnterMilitary>75 & yearEnterMilitary!=99)
tab vv

replace totalSample=0 if vv==9
tab totalSample

/* Lottery draft eligibility */ 
gen eligible=9 

replace eligible=1 if birthYear>=48 & birthYear<=50 & lott<=195 
replace eligible=1 if birthYear==51 & lott<=125 
replace eligible=1 if birthYear==52 & lott<=95 
replace eligible=1 if birthYear==53 & lott<=95 

replace eligible=0 if eligible==9 
tab eligible 

*Criminal justice contact before draft
gen contactJuvenile=9
replace contactJuvenile=1 if (firstArrestBy18==1 | incarcerationBefore1968==1 | probationBy18==1 ) 
replace contactJuvenile=0 if contactJuvenile==9
tab contactJuvenile

*Violent recidivism
gen violent_desistance=9
replace violent_desistance=1 if contactJuvenile==1 & currentViolent==1 
replace violent_desistance=0 if contactJuvenile==0 | currentViolent==0
tab violent_desistance

*Nonviolent recidivism 
gen nonviolent_desistance=9
replace nonviolent_desistance=1 if contactJuvenile==1 & nonviolent==1 
replace nonviolent_desistance=0 if contactJuvenile==0 | nonviolent==0
tab nonviolent_desistance

*Violent recidivists incarcerated during draft 
gen violent_r_draft=9
replace violent_r_draft=1 if incarcerationDuringDraft==1 & currentViolent==1 
replace violent_r_draft=0 if incarcerationDuringDraft==0 | currentViolent==0
tab violent_r_draft

*Nonviolent recidivists incarcerated during draft 
gen nonviolent_r_draft=9
replace nonviolent_r_draft=1 if incarcerationDuringDraft==1 & nonviolent==1 
replace nonviolent_r_draft=0 if incarcerationDuringDraft==0 | nonviolent==0
tab nonviolent_r_draft

*Violent criminals who took drug during draft 
gen violent_drug_draft=9
replace violent_drug_draft=1 if firstUseDrugDuringDraft==1 & currentViolent==1 
replace violent_drug_draft=0 if firstUseDrugDuringDraft==0 | currentViolent==0
tab violent_drug_draft

*Nonviolent criminals who took drug during draft  
gen nonviolent_drug_draft=9
replace nonviolent_drug_draft=1 if firstUseDrugDuringDraft==1 & nonviolent==1 
replace nonviolent_drug_draft=0 if firstUseDrugDuringDraft==0 | nonviolent==0
tab nonviolent_drug_draft 


/*Lindo Stoecker Recidivism */ 
*Violent recidivism
gen LSviolent_desistance=9
replace LSviolent_desistance=1 if contactJuvenile==1 & LScurrentViolent==1 
replace LSviolent_desistance=0 if contactJuvenile==0 | LScurrentViolent==0
tab LSviolent_desistance

*Nonviolent recidivism 
gen LSnonviolent_desistance=9
replace LSnonviolent_desistance=1 if contactJuvenile==1 & LSnonviolent==1 
replace LSnonviolent_desistance=0 if contactJuvenile==0 | LSnonviolent==0
tab LSnonviolent_desistance

*Violent recidivists incarcerated during draft 
gen LSviolent_r_draft=9
replace LSviolent_r_draft=1 if incarcerationDuringDraft==1 & LScurrentViolent==1 
replace LSviolent_r_draft=0 if incarcerationDuringDraft==0 | LScurrentViolent==0
tab LSviolent_r_draft

*Nonviolent recidivists incarcerated during draft 
gen LSnonviolent_r_draft=9
replace LSnonviolent_r_draft=1 if incarcerationDuringDraft==1 & LSnonviolent==1 
replace LSnonviolent_r_draft=0 if incarcerationDuringDraft==0 | LSnonviolent==0
tab LSnonviolent_r_draft

*Violent criminals who took drug during draft 
gen LSviolent_drug_draft=9
replace LSviolent_drug_draft=1 if firstUseDrugDuringDraft==1 & LScurrentViolent==1 
replace LSviolent_drug_draft=0 if firstUseDrugDuringDraft==0 | LScurrentViolent==0
tab LSviolent_drug_draft

*Nonviolent criminals who took drug during draft  
gen LSnonviolent_drug_draft=9
replace LSnonviolent_drug_draft=1 if firstUseDrugDuringDraft==1 & LSnonviolent==1 
replace LSnonviolent_drug_draft=0 if firstUseDrugDuringDraft==0 | LSnonviolent==0
tab LSnonviolent_drug_draft 


/*Ever Recidivism */ 
*Violent recidivism
gen Everviolent_desistance=9
replace Everviolent_desistance=1 if contactJuvenile==1 & EvercurrentViolent==1 
replace Everviolent_desistance=0 if contactJuvenile==0 | EvercurrentViolent==0
tab Everviolent_desistance

*Nonviolent recidivism 
gen Evernonviolent_desistance=9
replace Evernonviolent_desistance=1 if contactJuvenile==1 & Evernonviolent==1 
replace Evernonviolent_desistance=0 if contactJuvenile==0 | Evernonviolent==0
tab Evernonviolent_desistance

*Violent recidivists incarcerated during draft 
gen Everviolent_r_draft=9
replace Everviolent_r_draft=1 if incarcerationDuringDraft==1 & EvercurrentViolent==1 
replace Everviolent_r_draft=0 if incarcerationDuringDraft==0 | EvercurrentViolent==0
tab Everviolent_r_draft

*Nonviolent recidivists incarcerated during draft 
gen Evernonviolent_r_draft=9
replace Evernonviolent_r_draft=1 if incarcerationDuringDraft==1 & Evernonviolent==1 
replace Evernonviolent_r_draft=0 if incarcerationDuringDraft==0 | Evernonviolent==0
tab Evernonviolent_r_draft

*Violent criminals who took drug during draft 
gen Everviolent_drug_draft=9
replace Everviolent_drug_draft=1 if firstUseDrugDuringDraft==1 & EvercurrentViolent==1 
replace Everviolent_drug_draft=0 if firstUseDrugDuringDraft==0 | EvercurrentViolent==0
tab Everviolent_drug_draft

*Nonviolent criminals who took drug during draft  
gen Evernonviolent_drug_draft=9
replace Evernonviolent_drug_draft=1 if firstUseDrugDuringDraft==1 & Evernonviolent==1 
replace Evernonviolent_drug_draft=0 if firstUseDrugDuringDraft==0 | Evernonviolent==0
tab Evernonviolent_drug_draft 

/* Generate Census Variable for the inmate data  */ 
gen Census=0

save inmate_data, replace 


	


